wok-next annotate tar/receipt @ rev 588
pth: missing shared libs and typo
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Apr 16 01:48:20 2008 +0200 (2008-04-16) |
parents | |
children | 127458af63a7 |
rev | line source |
---|---|
pankso@455 | 1 # SliTaz package receipt. |
pankso@455 | 2 |
pankso@455 | 3 PACKAGE="tar" |
pankso@455 | 4 VERSION="1.19" |
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@455 | 9 WEB_SITE="" |
pankso@455 | 10 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
pankso@455 | 11 |
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 |
pankso@455 | 17 ./configure \ |
pankso@455 | 18 --prefix=/usr \ |
pankso@455 | 19 --libexecdir=/usr/lib/$PACKAGE \ |
pankso@455 | 20 $CONFIGURE_ARGS |
pankso@455 | 21 make |
pankso@455 | 22 make DESTDIR=$PWD/_pkg install |
pankso@455 | 23 } |
pankso@455 | 24 |
pankso@455 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@455 | 26 genpkg_rules() |
pankso@455 | 27 { |
pankso@455 | 28 mkdir -p $fs/usr |
pankso@455 | 29 cp -a $_pkg/usr/bin $fs/usr |
pankso@455 | 30 } |
pankso@455 | 31 |
pankso@455 | 32 # Prevent erasing busybox... |
pankso@455 | 33 pre_install() |
pankso@455 | 34 { |
pankso@455 | 35 local root |
pankso@455 | 36 root=$1 |
pankso@455 | 37 rm -f $root/usr/bin/tar |
pankso@455 | 38 } |
pankso@455 | 39 |
pankso@455 | 40 post_remove() |
pankso@455 | 41 { |
pankso@455 | 42 ln -s /bin/busybox /usr/bin/tar |
pankso@455 | 43 } |