blob: 714aca62f0f705a435f991231b304bc2d7488c6e [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001SUMMARY = "Shared MIME type database and specification"
Andrew Geissler90fd73c2021-03-05 15:25:55 -06002DESCRIPTION = "The shared-mime-info package contains the core database of common types and the update-mime-database command used to extend it. It requires glib2 to be installed for building the update command. Additionally, it uses intltool for translations, though this is only a dependency for the maintainers."
Andrew Geissler82c905d2020-04-13 13:39:40 -05003HOMEPAGE = "http://freedesktop.org/wiki/Software/shared-mime-info"
4SECTION = "base"
5
6LICENSE = "GPLv2"
7LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
8
Andrew Geissler5a43b432020-06-13 10:46:56 -05009DEPENDS = "libxml2 itstool-native glib-2.0 shared-mime-info-native xmlto-native"
Andrew Geissler82c905d2020-04-13 13:39:40 -050010
11SRC_URI = "git://gitlab.freedesktop.org/xdg/shared-mime-info.git;protocol=https"
Andrew Geisslerd1e89492021-02-12 15:35:20 -060012SRCREV = "18e558fa1c8b90b86757ade09a4ba4d6a6cf8f70"
13PV = "2.1"
Andrew Geissler82c905d2020-04-13 13:39:40 -050014S = "${WORKDIR}/git"
15
Andrew Geissler5a43b432020-06-13 10:46:56 -050016inherit meson pkgconfig gettext python3native mime
Andrew Geissler82c905d2020-04-13 13:39:40 -050017
Andrew Geissler5a43b432020-06-13 10:46:56 -050018EXTRA_OEMESON = "-Dupdate-mimedb=true"
Andrew Geissler82c905d2020-04-13 13:39:40 -050019
Patrick Williams213cb262021-08-07 19:21:33 -050020FILES:${PN} += "${datadir}/mime"
21FILES:${PN}-dev += "${datadir}/pkgconfig/shared-mime-info.pc ${datadir}/gettext/its"
Andrew Geissler82c905d2020-04-13 13:39:40 -050022
23# freedesktop.org.xml is only required when updating the mime database,
24# package it separately
25PACKAGES =+ "shared-mime-info-data"
Patrick Williams213cb262021-08-07 19:21:33 -050026FILES:shared-mime-info-data = "${datadir}/mime/packages/freedesktop.org.xml"
27RDEPENDS:shared-mime-info-data = "shared-mime-info"
Andrew Geissler82c905d2020-04-13 13:39:40 -050028
Andrew Geissler82c905d2020-04-13 13:39:40 -050029BBCLASSEXTEND = "native nativesdk"