wok-stable view unzip/receipt @ rev 11446
pam, busybox-pam: trigger the proper reinstallation of busybox before removing them
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Fri Dec 16 23:50:33 2011 +0100 (2011-12-16) |
parents | be643f64f74f |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="unzip"
4 VERSION="6.0"
5 CATEGORY="system-tools"
6 SHORT_DESC="Zip dearchiver."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="unzip60.tar.gz"
9 WEB_SITE="http://www.info-zip.org/"
10 WGET_URL="$SF_MIRROR/infozip/$TARBALL"
11 TAGS="archive compression"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 ln -sf $WOK/$PACKAGE/unzip60 $WOK/$PACKAGE/$PACKAGE-$VERSION
17 cd $src
18 make -f unix/Makefile generic
19 make -f unix/Makefile prefix=$PWD/_pkg install
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 mkdir -p $fs/usr
26 cp -a $_pkg/bin $fs/usr/bin
27 }
29 # Remove Busybox symlink before installing
30 pre_install()
31 {
32 rm -f $1/usr/bin/unzip
33 }
35 post_remove()
36 {
37 ln -s /bin/busybox /usr/bin/unzip
38 }