Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame^] | 1 | SUMMARY = "Shared MIME type database and specification" |
| 2 | HOMEPAGE = "http://freedesktop.org/wiki/Software/shared-mime-info" |
| 3 | SECTION = "base" |
| 4 | |
| 5 | LICENSE = "GPLv2" |
| 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" |
| 7 | |
| 8 | DEPENDS = "libxml2 itstool-native glib-2.0 shared-mime-info-native" |
| 9 | |
| 10 | SRC_URI = "git://gitlab.freedesktop.org/xdg/shared-mime-info.git;protocol=https" |
| 11 | SRCREV = "829b26d85e7d89a0caee03046c3bce373f04c80a" |
| 12 | PV = "1.15" |
| 13 | S = "${WORKDIR}/git" |
| 14 | |
| 15 | UPSTREAM_CHECK_GITTAGREGEX = "Release-(?P<pver>(\d+(\-\d+)+))" |
| 16 | UPSTREAM_VERSION_UNKNOWN = "1" |
| 17 | |
| 18 | inherit autotools pkgconfig gettext python3native mime |
| 19 | |
| 20 | EXTRA_OECONF = "--disable-update-mimedb" |
| 21 | |
| 22 | FILES_${PN} += "${datadir}/mime" |
| 23 | FILES_${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 |
| 27 | PACKAGES =+ "shared-mime-info-data" |
| 28 | FILES_shared-mime-info-data = "${datadir}/mime/packages/freedesktop.org.xml" |
| 29 | RDEPENDS_shared-mime-info-data = "shared-mime-info" |
| 30 | |
| 31 | do_install () { |
| 32 | autotools_do_install |
| 33 | |
| 34 | update-mime-database ${D}${datadir}/mime |
| 35 | } |
| 36 | |
| 37 | do_install_class-native () { |
| 38 | autotools_do_install |
| 39 | |
| 40 | ${B}/update-mime-database ${D}${datadir}/mime |
| 41 | } |
| 42 | |
| 43 | BBCLASSEXTEND = "native nativesdk" |