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 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 15 | inherit autotools pkgconfig gettext python3native mime |
| 16 | |
| 17 | EXTRA_OECONF = "--disable-update-mimedb" |
| 18 | |
| 19 | FILES_${PN} += "${datadir}/mime" |
| 20 | FILES_${PN}-dev += "${datadir}/pkgconfig/shared-mime-info.pc" |
| 21 | |
| 22 | # freedesktop.org.xml is only required when updating the mime database, |
| 23 | # package it separately |
| 24 | PACKAGES =+ "shared-mime-info-data" |
| 25 | FILES_shared-mime-info-data = "${datadir}/mime/packages/freedesktop.org.xml" |
| 26 | RDEPENDS_shared-mime-info-data = "shared-mime-info" |
| 27 | |
| 28 | do_install () { |
| 29 | autotools_do_install |
| 30 | |
| 31 | update-mime-database ${D}${datadir}/mime |
| 32 | } |
| 33 | |
| 34 | do_install_class-native () { |
| 35 | autotools_do_install |
| 36 | |
| 37 | ${B}/update-mime-database ${D}${datadir}/mime |
| 38 | } |
| 39 | |
| 40 | BBCLASSEXTEND = "native nativesdk" |