aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/unzip/unzip_552.bb
diff options
context:
space:
mode:
authorCliff Brake <cbrake@bec-systems.com>2010-11-12 00:00:20 -0500
committerCliff Brake <cbrake@bec-systems.com>2010-11-12 00:00:20 -0500
commit3c6efe8f8abc16668ca5e9cdf7a46665dac87172 (patch)
tree642c13416b99e80f0871cdc6668e832e635dfb48 /recipes/unzip/unzip_552.bb
parentc400c874f2ac9233b8a43a73309b6e7907289c54 (diff)
parent13fbe7253c95881ede787004a4c3a1c31502e5c6 (diff)
downloadopenembedded-3c6efe8f8abc16668ca5e9cdf7a46665dac87172.tar.gz
Merge branch 'master' into testing-nexttested_2010-11-12testing
Diffstat (limited to 'recipes/unzip/unzip_552.bb')
-rw-r--r--recipes/unzip/unzip_552.bb11
1 files changed, 10 insertions, 1 deletions
diff --git a/recipes/unzip/unzip_552.bb b/recipes/unzip/unzip_552.bb
index 6e3497e7bb..0decc4a1dc 100644
--- a/recipes/unzip/unzip_552.bb
+++ b/recipes/unzip/unzip_552.bb
@@ -1,7 +1,7 @@
DESCRIPTION = "A (de)compression library for the ZIP format"
SECTION = "console/utils"
LICENSE = "Info-ZIP"
-PR = "r1"
+PR = "r2"
SRC_URI = "${SOURCEFORGE_MIRROR}/project/infozip/UnZip%205.x%20and%20earlier/5.52/unzip${PV}.tar.gz"
S = "${WORKDIR}/unzip-5.52"
@@ -19,6 +19,15 @@ do_install() {
oe_runmake -f unix/Makefile install prefix=${D}${prefix}
install -d ${D}${mandir}
mv ${D}${prefix}/man/* ${D}${mandir}
+ mv ${D}${bindir}/unzip ${D}${bindir}/unzip.${PN}
+}
+
+pkg_postinst_${PN} () {
+ update-alternatives --install ${bindir}/unzip unzip unzip.${PN} 100
+}
+
+pkg_prerm_${PN} () {
+ update-alternatives --remove unzip unzip.${PN}
}
SRC_URI[md5sum] = "9d23919999d6eac9217d1f41472034a9"