wok annotate tar/receipt @ rev 10415
automake: Added cook_tmp_toolchain function to fix tazwok cook-toolchain.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Tue May 24 07:52:52 2011 +0000 (2011-05-24) |
parents | 8502c6fe00f2 |
children | 600aaedb561d |
rev | line source |
---|---|
pankso@455 | 1 # SliTaz package receipt. |
pankso@455 | 2 |
pankso@455 | 3 PACKAGE="tar" |
slaxemulator@9243 | 4 VERSION="1.26" |
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/" |
slaxemulator@9247 | 10 WGET_URL="http://ftp.gnu.org/gnu/$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 } |