summaryrefslogtreecommitdiff
path: root/packages/shared-mime-info
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2007-08-02 10:59:11 +0000
committerKoen Kooi <koen@openembedded.org>2007-08-02 10:59:11 +0000
commit1c9d737a75a06ccbf8699834db495132a6df3f81 (patch)
tree55673201d4c5d712b0a8ff8331710d19b71b994b /packages/shared-mime-info
parent2ca14f33bc711355a68bd5b21254171571873a56 (diff)
shared-mime-info: fix postinst, update to 0.22
Diffstat (limited to 'packages/shared-mime-info')
-rw-r--r--packages/shared-mime-info/shared-mime-info.inc21
-rw-r--r--packages/shared-mime-info/shared-mime-info_0.20.bb18
-rw-r--r--packages/shared-mime-info/shared-mime-info_0.22.bb2
3 files changed, 24 insertions, 17 deletions
diff --git a/packages/shared-mime-info/shared-mime-info.inc b/packages/shared-mime-info/shared-mime-info.inc
new file mode 100644
index 0000000000..3e591ad2d6
--- /dev/null
+++ b/packages/shared-mime-info/shared-mime-info.inc
@@ -0,0 +1,21 @@
+SECTION = "base"
+LICENSE = "GPL"
+DEPENDS = "libxml2 intltool-native"
+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
+}
diff --git a/packages/shared-mime-info/shared-mime-info_0.20.bb b/packages/shared-mime-info/shared-mime-info_0.20.bb
index 60993adcc2..f24008ec13 100644
--- a/packages/shared-mime-info/shared-mime-info_0.20.bb
+++ b/packages/shared-mime-info/shared-mime-info_0.20.bb
@@ -1,18 +1,2 @@
-SECTION = "base"
-LICENSE = "GPL"
-DEPENDS = "libxml2 intltool-native"
-PR = "r0"
+require shared-mime-info.inc
-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 () {
- echo "Updating MIME database... this may take a while."
- ${bindir}/update-mime-database ${datadir}/mime
-}
diff --git a/packages/shared-mime-info/shared-mime-info_0.22.bb b/packages/shared-mime-info/shared-mime-info_0.22.bb
new file mode 100644
index 0000000000..f24008ec13
--- /dev/null
+++ b/packages/shared-mime-info/shared-mime-info_0.22.bb
@@ -0,0 +1,2 @@
+require shared-mime-info.inc
+