wok-6.x view tar/receipt @ rev 7622

caps: fix category
author Paul Issott <paul@slitaz.org>
date Sun Dec 12 17:18:00 2010 +0000 (2010-12-12)
parents 75e687925557
children 8502c6fe00f2
line source
1 # SliTaz package receipt.
3 PACKAGE="tar"
4 VERSION="1.25"
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"
11 TAGS="archive compression"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 cd $src
17 # this is needed since configure can't be run as root with out it
18 export FORCE_UNSAFE_CONFIGURE=1
19 ./configure \
20 --prefix=/usr \
21 --libexecdir=/usr/lib/$PACKAGE \
22 $CONFIGURE_ARGS
23 make
24 make DESTDIR=$PWD/_pkg install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs
31 cp -a $_pkg/usr/bin $fs
32 }
34 # Prevent erasing busybox...
35 pre_install()
36 {
37 local root
38 root=$1
39 rm -f $root/bin/tar
40 }
42 post_remove()
43 {
44 ln -s /bin/busybox /bin/tar
45 }