wok annotate xz/receipt @ rev 9091
fix php-auth-sasl
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Mar 04 19:01:57 2011 +0100 (2011-03-04) |
parents | b3aca2070330 |
children | 221336519316 |
rev | line source |
---|---|
pascal@4151 | 1 # SliTaz package receipt. |
pascal@4151 | 2 |
pascal@4151 | 3 PACKAGE="xz" |
slaxemulator@8266 | 4 VERSION="5.0.1" |
pascal@4151 | 5 CATEGORY="base-system" |
pascal@4151 | 6 SHORT_DESC="General-purpose data compressor with a high compression ratio." |
pascal@4151 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@4151 | 8 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@5008 | 9 DEPENDS="liblzma" |
pascal@4151 | 10 WEB_SITE="http://tukaani.org/xz" |
pascal@4151 | 11 WGET_URL="$WEB_SITE/$TARBALL" |
pascal@4862 | 12 PROVIDE="lzma" |
pascal@4151 | 13 |
pascal@4151 | 14 # Rules to configure and make the package. |
pascal@4151 | 15 compile_rules() |
pascal@4151 | 16 { |
pascal@4151 | 17 cd $src |
pascal@4151 | 18 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@4151 | 19 --mandir=/usr/share/man \ |
pascal@4151 | 20 --enable-dynamic=yes --enable-small \ |
pascal@4151 | 21 $CONFIGURE_ARGS && |
pascal@4151 | 22 make && |
pascal@4151 | 23 make DESTDIR=$PWD/_pkg install |
pascal@4151 | 24 } |
pascal@4151 | 25 |
pascal@4151 | 26 |
pascal@4151 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@4151 | 28 genpkg_rules() |
pascal@4151 | 29 { |
pascal@4870 | 30 mkdir -p $fs/usr/bin |
pascal@4151 | 31 cp -a $_pkg/usr/bin/xz $fs/usr/bin |
pascal@4861 | 32 cp stuff/lzma $fs/usr/bin |
pascal@7616 | 33 ln -s lzma $fs/usr/bin/unlzma |
pascal@7616 | 34 ln -s lzma $fs/usr/bin/lzcat |
pascal@4151 | 35 } |
pascal@7616 | 36 |
slaxemulator@7617 | 37 # Pre and post install commands for Tazpkg. |
slaxemulator@7617 | 38 # We must remove all Busybox symlink before installing. |
slaxemulator@7617 | 39 # |
slaxemulator@7617 | 40 pre_install() |
slaxemulator@7617 | 41 { |
slaxemulator@7617 | 42 local root |
slaxemulator@7617 | 43 root=$1 |
slaxemulator@7617 | 44 echo "Processing pre-install commands..." |
slaxemulator@7617 | 45 echo -n "Removing all Busybox replaced utils... " |
slaxemulator@7617 | 46 rm -f $root/usr/bin/unlzma |
pascal@8879 | 47 rm -f $root/usr/bin/lzcat |
slaxemulator@7617 | 48 status |
slaxemulator@7617 | 49 } |
slaxemulator@7617 | 50 |
pascal@7616 | 51 post_remove() |
pascal@7616 | 52 { |
slaxemulator@8647 | 53 ln -s /bin/busybox $1/usr/bin/unlzma |
pascal@8879 | 54 ln -s /bin/busybox $1/usr/bin/lzcat |
slaxemulator@8266 | 55 } |