wok view xz/receipt @ rev 9543
blender: fix BUILD_DEPENDS
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Apr 09 13:01:20 2011 +0200 (2011-04-09) |
parents | b3aca2070330 |
children | 221336519316 |
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 --prefix=/usr --infodir=/usr/share/info \
19 --mandir=/usr/share/man \
20 --enable-dynamic=yes --enable-small \
21 $CONFIGURE_ARGS &&
22 make &&
23 make DESTDIR=$PWD/_pkg install
24 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr/bin
31 cp -a $_pkg/usr/bin/xz $fs/usr/bin
32 cp stuff/lzma $fs/usr/bin
33 ln -s lzma $fs/usr/bin/unlzma
34 ln -s lzma $fs/usr/bin/lzcat
35 }
37 # Pre and post install commands for Tazpkg.
38 # We must remove all Busybox symlink before installing.
39 #
40 pre_install()
41 {
42 local root
43 root=$1
44 echo "Processing pre-install commands..."
45 echo -n "Removing all Busybox replaced utils... "
46 rm -f $root/usr/bin/unlzma
47 rm -f $root/usr/bin/lzcat
48 status
49 }
51 post_remove()
52 {
53 ln -s /bin/busybox $1/usr/bin/unlzma
54 ln -s /bin/busybox $1/usr/bin/lzcat
55 }