wok-current annotate which/receipt @ rev 10172

Add perl-bit-vector.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri May 20 21:59:25 2011 +0000 (2011-05-20)
parents
children 2b9f96603415
rev   line source
slaxemulator@7340 1 # SliTaz package receipt.
slaxemulator@7340 2
slaxemulator@7340 3 PACKAGE="which"
slaxemulator@7340 4 VERSION="2.20"
slaxemulator@7340 5 CATEGORY="base-system"
slaxemulator@7340 6 SHORT_DESC="A utility to show the full path of commands"
slaxemulator@7340 7 MAINTAINER="slaxemulator@gmail.com"
slaxemulator@7340 8 DEPENDS="glibc-base"
slaxemulator@7340 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
slaxemulator@7340 10 WEB_SITE="http://www.xs4all.nl/~carlo17/which"
slaxemulator@7340 11 WGET_URL="http://www.xs4all.nl/~carlo17/$PACKAGE/$TARBALL"
slaxemulator@7340 12
slaxemulator@7340 13 # Rules to configure and make the package.
slaxemulator@7340 14 compile_rules()
slaxemulator@7340 15 {
slaxemulator@7340 16 cd $src
slaxemulator@7340 17 ./configure \
slaxemulator@7340 18 --prefix=/usr \
slaxemulator@7340 19 --infodir=/usr/share/info \
slaxemulator@7340 20 --mandir=/usr/share/man \
slaxemulator@7340 21 $CONFIGURE_ARGS &&
slaxemulator@7340 22 make && make DESTDIR=$PWD/_pkg install
slaxemulator@7340 23 }
slaxemulator@7340 24
slaxemulator@7340 25 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@7340 26 genpkg_rules()
slaxemulator@7340 27 {
slaxemulator@7340 28 mkdir -p $fs/usr
slaxemulator@7340 29 cp -a $_pkg/usr/bin $fs/usr
slaxemulator@7340 30 }
slaxemulator@7340 31
slaxemulator@7340 32 # Pre and post install commands for Tazpkg.
slaxemulator@7340 33 # We must remove all Busybox symlink before installing.
slaxemulator@7340 34 #
slaxemulator@7340 35 pre_install()
slaxemulator@7340 36 {
slaxemulator@7340 37 local root
slaxemulator@7340 38 root=$1
slaxemulator@7340 39 echo "Processing pre-install commands..."
slaxemulator@7340 40 echo -n "Removing all Busybox replaced utils... "
slaxemulator@7340 41 rm -f $root/usr/bin/which
slaxemulator@7340 42 status
slaxemulator@7340 43 }
slaxemulator@7340 44
slaxemulator@7340 45 post_remove()
slaxemulator@7340 46 {
slaxemulator@7340 47 ln -s /bin/busybox /usr/bin/which
slaxemulator@7340 48 }