blob: e82c818e5cf7f1e57358e01df3dde95a16b636ed [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001SUMMARY = "Shared MIME type database and specification"
2HOMEPAGE = "http://freedesktop.org/wiki/Software/shared-mime-info"
3SECTION = "base"
4
5LICENSE = "GPLv2"
6LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
7
Andrew Geissler5a43b432020-06-13 10:46:56 -05008DEPENDS = "libxml2 itstool-native glib-2.0 shared-mime-info-native xmlto-native"
Andrew Geissler82c905d2020-04-13 13:39:40 -05009
10SRC_URI = "git://gitlab.freedesktop.org/xdg/shared-mime-info.git;protocol=https"
Andrew Geissler5a43b432020-06-13 10:46:56 -050011SRCREV = "ef58b2b2f7ad4070171c6e45e3b3764daa3ff2c1"
12PV = "2.0"
Andrew Geissler82c905d2020-04-13 13:39:40 -050013S = "${WORKDIR}/git"
14
Andrew Geissler5a43b432020-06-13 10:46:56 -050015inherit meson pkgconfig gettext python3native mime
Andrew Geissler82c905d2020-04-13 13:39:40 -050016
Andrew Geissler5a43b432020-06-13 10:46:56 -050017EXTRA_OEMESON = "-Dupdate-mimedb=true"
Andrew Geissler82c905d2020-04-13 13:39:40 -050018
19FILES_${PN} += "${datadir}/mime"
Andrew Geissler5a43b432020-06-13 10:46:56 -050020FILES_${PN}-dev += "${datadir}/pkgconfig/shared-mime-info.pc ${datadir}/gettext/its"
Andrew Geissler82c905d2020-04-13 13:39:40 -050021
22# freedesktop.org.xml is only required when updating the mime database,
23# package it separately
24PACKAGES =+ "shared-mime-info-data"
25FILES_shared-mime-info-data = "${datadir}/mime/packages/freedesktop.org.xml"
26RDEPENDS_shared-mime-info-data = "shared-mime-info"
27
Andrew Geissler82c905d2020-04-13 13:39:40 -050028BBCLASSEXTEND = "native nativesdk"