wok annotate tar/receipt @ rev 8004

Add libtaz to tazchroot depends.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue Jan 18 13:46:16 2011 +0000 (2011-01-18)
parents 75e687925557
children 8502c6fe00f2
rev   line source
pankso@455 1 # SliTaz package receipt.
pankso@455 2
pankso@455 3 PACKAGE="tar"
slaxemulator@7183 4 VERSION="1.25"
pankso@455 5 CATEGORY="utilities"
pankso@455 6 SHORT_DESC="GNU tar archiving tools."
pankso@455 7 MAINTAINER="pankso@slitaz.org"
pankso@455 8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pankso@613 9 WEB_SITE="http://www.gnu.org/software/tar/"
pankso@455 10 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
jozee@4973 11 TAGS="archive compression"
pankso@455 12
pankso@455 13 # Rules to configure and make the package.
pankso@455 14 compile_rules()
pankso@455 15 {
pankso@455 16 cd $src
slaxemulator@7183 17 # this is needed since configure can't be run as root with out it
slaxemulator@7183 18 export FORCE_UNSAFE_CONFIGURE=1
pankso@455 19 ./configure \
pankso@455 20 --prefix=/usr \
pankso@455 21 --libexecdir=/usr/lib/$PACKAGE \
pankso@455 22 $CONFIGURE_ARGS
pankso@455 23 make
pankso@455 24 make DESTDIR=$PWD/_pkg install
pankso@455 25 }
pankso@455 26
pankso@455 27 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@455 28 genpkg_rules()
pankso@455 29 {
pascal@5014 30 mkdir -p $fs
pascal@5014 31 cp -a $_pkg/usr/bin $fs
pankso@455 32 }
pankso@455 33
pankso@455 34 # Prevent erasing busybox...
pankso@455 35 pre_install()
pankso@455 36 {
pankso@455 37 local root
pankso@455 38 root=$1
pascal@5014 39 rm -f $root/bin/tar
pankso@455 40 }
pankso@455 41
pankso@455 42 post_remove()
pankso@455 43 {
pascal@5014 44 ln -s /bin/busybox /bin/tar
pankso@455 45 }