summaryrefslogtreecommitdiff
path: root/meta/packages/shared-mime-info/shared-mime-info.inc
blob: 81320371fa67a3ec961f96bbd36bcc06137349ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
SECTION = "base"
LICENSE = "GPL"

SRC_URI = "http://freedesktop.org/~hadess/shared-mime-info-${PV}.tar.bz2"
DEPENDS = "libxml2 intltool-native glib-2.0 shared-mime-info-native"
DEPENDS_virtclass-native = "libxml2-native intltool-native glib-2.0-native"

PR = "r2"

inherit autotools pkgconfig gettext

EXTRA_OECONF = "--disable-update-mimedb"

FILES_${PN} += "${datadir}/mime"
FILES_${PN}-dev += "${datadir}/pkgconfig/shared-mime-info.pc"

do_install_append() {
    update-mime-database ${D}${datadir}/mime

    # we do not need it on device and it is huge
    rm ${D}${datadir}/mime/packages/freedesktop.org.xml
}

BBCLASSEXTEND = "native"