Patrick Williams | c124f4f | 2015-09-15 14:41:29 -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 | |
Brad Bishop | d5ae7d9 | 2018-06-14 09:52:03 -0700 | [diff] [blame] | 5 | LICENSE = "GPLv2" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" |
| 7 | |
| 8 | DEPENDS = "libxml2 intltool-native glib-2.0 shared-mime-info-native" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 9 | |
| 10 | SRC_URI = "http://freedesktop.org/~hadess/shared-mime-info-${PV}.tar.xz" |
| 11 | |
| 12 | inherit autotools pkgconfig gettext |
| 13 | |
| 14 | EXTRA_OECONF = "--disable-update-mimedb" |
| 15 | |
| 16 | FILES_${PN} += "${datadir}/mime" |
| 17 | FILES_${PN}-dev += "${datadir}/pkgconfig/shared-mime-info.pc" |
| 18 | |
| 19 | # freedesktop.org.xml is only required when updating the mime database, |
| 20 | # package it separately |
| 21 | PACKAGES =+ "shared-mime-info-data" |
| 22 | FILES_shared-mime-info-data = "${datadir}/mime/packages/freedesktop.org.xml" |
| 23 | RDEPENDS_shared-mime-info-data = "shared-mime-info" |
| 24 | |
| 25 | do_install () { |
| 26 | autotools_do_install |
| 27 | |
| 28 | update-mime-database ${D}${datadir}/mime |
| 29 | } |
| 30 | |
| 31 | do_install_class-native () { |
| 32 | autotools_do_install |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 33 | |
| 34 | ${B}/update-mime-database ${D}${datadir}/mime |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 35 | } |
| 36 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 37 | BBCLASSEXTEND = "native nativesdk" |