wok-4.x view tar/receipt @ rev 12450
postgis: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 08 13:21:45 2015 +0100 (2015-02-08) |
parents | 8502c6fe00f2 |
children | 39f7962e4210 |
line source
1 # SliTaz package receipt.
3 PACKAGE="tar"
4 VERSION="1.26"
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="http://ftp.gnu.org/gnu/$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 }