wok-current annotate which/receipt @ rev 15863
audacious-plugins: update TARBALL
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jan 30 09:14:06 2014 +0000 (2014-01-30) |
parents | 2b9f96603415 |
children | 9e01bc6321ea |
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" |
pascal@15201 | 8 LICENSE="GPL3" |
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 |
pascal@14999 | 13 DEPENDS="glibc-base" |
pascal@14999 | 14 |
slaxemulator@7340 | 15 # Rules to configure and make the package. |
slaxemulator@7340 | 16 compile_rules() |
slaxemulator@7340 | 17 { |
slaxemulator@7340 | 18 cd $src |
slaxemulator@7340 | 19 ./configure \ |
slaxemulator@7340 | 20 --prefix=/usr \ |
slaxemulator@7340 | 21 --infodir=/usr/share/info \ |
slaxemulator@7340 | 22 --mandir=/usr/share/man \ |
slaxemulator@7340 | 23 $CONFIGURE_ARGS && |
pascal@14999 | 24 make && make DESTDIR=$DESTDIR install |
slaxemulator@7340 | 25 } |
slaxemulator@7340 | 26 |
slaxemulator@7340 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@7340 | 28 genpkg_rules() |
slaxemulator@7340 | 29 { |
slaxemulator@7340 | 30 mkdir -p $fs/usr |
pascal@14999 | 31 cp -a $install/usr/bin $fs/usr |
slaxemulator@7340 | 32 } |
slaxemulator@7340 | 33 |
slaxemulator@7340 | 34 # Pre and post install commands for Tazpkg. |
slaxemulator@7340 | 35 # We must remove all Busybox symlink before installing. |
slaxemulator@7340 | 36 # |
slaxemulator@7340 | 37 pre_install() |
slaxemulator@7340 | 38 { |
slaxemulator@7340 | 39 local root |
slaxemulator@7340 | 40 root=$1 |
slaxemulator@7340 | 41 echo "Processing pre-install commands..." |
slaxemulator@7340 | 42 echo -n "Removing all Busybox replaced utils... " |
slaxemulator@7340 | 43 rm -f $root/usr/bin/which |
slaxemulator@7340 | 44 status |
slaxemulator@7340 | 45 } |
slaxemulator@7340 | 46 |
slaxemulator@7340 | 47 post_remove() |
slaxemulator@7340 | 48 { |
slaxemulator@7340 | 49 ln -s /bin/busybox /usr/bin/which |
slaxemulator@7340 | 50 } |