wok-6.x view xz/receipt @ rev 9792
awesome+startup-notification: fix BUILD_DEPENDS
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri May 13 23:19:06 2011 +0200 (2011-05-13) |
parents | 9dee63b88e27 |
children | b3a7c42da734 |
line source
1 # SliTaz package receipt.
3 PACKAGE="xz"
4 VERSION="5.0.1"
5 CATEGORY="base-system"
6 SHORT_DESC="General-purpose data compressor with a high compression ratio."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 DEPENDS="liblzma"
10 WEB_SITE="http://tukaani.org/xz"
11 WGET_URL="$WEB_SITE/$TARBALL"
12 PROVIDE="lzma"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 ./configure --enable-dynamic=yes --enable-small &&
19 make &&
20 make install
21 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr/bin
28 cp -a $_pkg/usr/bin/xz $fs/usr/bin
29 cp $stuff/lzma $fs/usr/bin
30 ln -s lzma $fs/usr/bin/unlzma
31 ln -s lzma $fs/usr/bin/lzcat
32 }
34 # Pre and post install commands for Tazpkg.
35 # We must remove all Busybox symlink before installing.
36 #
37 pre_install()
38 {
39 local root
40 root=$1
41 echo "Processing pre-install commands..."
42 echo -n "Removing all Busybox replaced utils... "
43 rm -f $root/usr/bin/unlzma
44 rm -f $root/usr/bin/lzcat
45 status
46 }
48 post_remove()
49 {
50 ln -s /bin/busybox $1/usr/bin/unlzma
51 ln -s /bin/busybox $1/usr/bin/lzcat
52 }