blob: 6179abfef7efba243b4575f76316c760ebb02c4d [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
Andrew Geissler595f6302022-01-24 19:11:47 +000011SRC_URI = "git://gitlab.freedesktop.org/xdg/shared-mime-info.git;protocol=https;branch=master \
12 file://0001-migrate-from-custom-itstool-to-builtin-msgfmt-for-cr.patch \
13 "
Andrew Geisslerd1e89492021-02-12 15:35:20 -060014SRCREV = "18e558fa1c8b90b86757ade09a4ba4d6a6cf8f70"
15PV = "2.1"
Andrew Geissler82c905d2020-04-13 13:39:40 -050016S = "${WORKDIR}/git"
17
Andrew Geissler5a43b432020-06-13 10:46:56 -050018inherit meson pkgconfig gettext python3native mime
Andrew Geissler82c905d2020-04-13 13:39:40 -050019
Andrew Geissler5a43b432020-06-13 10:46:56 -050020EXTRA_OEMESON = "-Dupdate-mimedb=true"
Andrew Geissler82c905d2020-04-13 13:39:40 -050021
Patrick Williams213cb262021-08-07 19:21:33 -050022FILES:${PN} += "${datadir}/mime"
23FILES:${PN}-dev += "${datadir}/pkgconfig/shared-mime-info.pc ${datadir}/gettext/its"
Andrew Geissler82c905d2020-04-13 13:39:40 -050024
25# freedesktop.org.xml is only required when updating the mime database,
26# package it separately
27PACKAGES =+ "shared-mime-info-data"
Patrick Williams213cb262021-08-07 19:21:33 -050028FILES:shared-mime-info-data = "${datadir}/mime/packages/freedesktop.org.xml"
29RDEPENDS:shared-mime-info-data = "shared-mime-info"
Andrew Geissler82c905d2020-04-13 13:39:40 -050030
Andrew Geissler82c905d2020-04-13 13:39:40 -050031BBCLASSEXTEND = "native nativesdk"