blob: f0d5bc62e9ed2fd36b4a7d52d88f86eba4b4b7ae [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
8DEPENDS = "libxml2 itstool-native glib-2.0 shared-mime-info-native"
9
10SRC_URI = "git://gitlab.freedesktop.org/xdg/shared-mime-info.git;protocol=https"
11SRCREV = "829b26d85e7d89a0caee03046c3bce373f04c80a"
12PV = "1.15"
13S = "${WORKDIR}/git"
14
Andrew Geissler82c905d2020-04-13 13:39:40 -050015inherit autotools pkgconfig gettext python3native mime
16
17EXTRA_OECONF = "--disable-update-mimedb"
18
19FILES_${PN} += "${datadir}/mime"
20FILES_${PN}-dev += "${datadir}/pkgconfig/shared-mime-info.pc"
21
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
28do_install () {
29 autotools_do_install
30
31 update-mime-database ${D}${datadir}/mime
32}
33
34do_install_class-native () {
35 autotools_do_install
36
37 ${B}/update-mime-database ${D}${datadir}/mime
38}
39
40BBCLASSEXTEND = "native nativesdk"