blob: 7a060b09ad9b091f5918ead71515198e705858ef [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
15UPSTREAM_CHECK_GITTAGREGEX = "Release-(?P<pver>(\d+(\-\d+)+))"
16UPSTREAM_VERSION_UNKNOWN = "1"
17
18inherit autotools pkgconfig gettext python3native mime
19
20EXTRA_OECONF = "--disable-update-mimedb"
21
22FILES_${PN} += "${datadir}/mime"
23FILES_${PN}-dev += "${datadir}/pkgconfig/shared-mime-info.pc"
24
25# freedesktop.org.xml is only required when updating the mime database,
26# package it separately
27PACKAGES =+ "shared-mime-info-data"
28FILES_shared-mime-info-data = "${datadir}/mime/packages/freedesktop.org.xml"
29RDEPENDS_shared-mime-info-data = "shared-mime-info"
30
31do_install () {
32 autotools_do_install
33
34 update-mime-database ${D}${datadir}/mime
35}
36
37do_install_class-native () {
38 autotools_do_install
39
40 ${B}/update-mime-database ${D}${datadir}/mime
41}
42
43BBCLASSEXTEND = "native nativesdk"