summaryrefslogtreecommitdiff
path: root/packages/shared-mime-info/shared-mime-info.inc
blob: fd9d45e6fd9eeec1fb3874f2c5744cfbcc4abe8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
SECTION = "base"
LICENSE = "GPL"
DEPENDS = "libxml2 intltool-native glib-2.0"
FILE_PR = "r0"

SRC_URI = "http://freedesktop.org/~hadess/shared-mime-info-${PV}.tar.bz2"

inherit autotools pkgconfig gettext

EXTRA_OECONF = "--disable-update-mimedb"

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

pkg_postinst () {
if [ "x$D" != "x" ]; then
        exit 1
fi
  echo "Updating MIME database... this may take a while."
  ${bindir}/update-mime-database ${datadir}/mime
}