blob: 387dd7bbadf21b8a523e22b1b7e3cec7a31c7dec [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001SUMMARY = "Shared MIME type database and specification"
Andrew Geissler5199d832021-09-24 16:47:35 -05002DESCRIPTION = "The shared-mime-info package contains the core database of common types."
Andrew Geissler82c905d2020-04-13 13:39:40 -05003HOMEPAGE = "http://freedesktop.org/wiki/Software/shared-mime-info"
4SECTION = "base"
5
Andrew Geissler7e0e3c02022-02-25 20:34:39 +00006LICENSE = "GPL-2.0-only"
Andrew Geissler82c905d2020-04-13 13:39:40 -05007LIC_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
Patrick Williams03907ee2022-05-01 06:28:52 -050011SRC_URI = "git://gitlab.freedesktop.org/xdg/shared-mime-info.git;protocol=https;branch=master"
12SRCREV = "13695c7225c2f525a435e72739c33ac32bbfbbb9"
13PV = "2.2"
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"