blob: 5509c99c462801aadfd173b7ef619e1c6bf522d0 [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 Geisslerd1e89492021-02-12 15:35:20 -060011SRCREV = "18e558fa1c8b90b86757ade09a4ba4d6a6cf8f70"
12PV = "2.1"
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"