wok-next view tar/receipt @ rev 4351

up: xchm
author Allan Pinto <allan316@gmail.com>
date Sat Oct 03 14:08:35 2009 +0000 (2009-10-03)
parents a7bd0e5069b6
children 866fa2493b1b
line source
1 # SliTaz package receipt.
3 PACKAGE="tar"
4 VERSION="1.20"
5 CATEGORY="utilities"
6 SHORT_DESC="GNU tar archiving tools."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 WEB_SITE="http://www.gnu.org/software/tar/"
10 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
12 # Rules to configure and make the package.
13 compile_rules()
14 {
15 cd $src
16 ./configure \
17 --prefix=/usr \
18 --libexecdir=/usr/lib/$PACKAGE \
19 $CONFIGURE_ARGS
20 make
21 make DESTDIR=$PWD/_pkg install
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr
28 cp -a $_pkg/usr/bin $fs/usr
29 }
31 # Prevent erasing busybox...
32 pre_install()
33 {
34 local root
35 root=$1
36 rm -f $root/usr/bin/tar
37 }
39 post_remove()
40 {
41 ln -s /bin/busybox /usr/bin/tar
42 }