wok annotate xz/receipt @ rev 10374
rox-filer: fix stuff parh
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon May 23 12:27:42 2011 +0200 (2011-05-23) |
parents | 221336519316 |
children | 5ef314adeb5c |
rev | line source |
---|---|
pascal@4151 | 1 # SliTaz package receipt. |
pascal@4151 | 2 |
pascal@4151 | 3 PACKAGE="xz" |
slaxemulator@10045 | 4 VERSION="5.0.2" |
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 |
slaxemulator@10045 | 18 ./configure $CONFIGURE_ARGS \ |
slaxemulator@10045 | 19 --enable-dynamic=yes --enable-small && |
slaxemulator@10045 | 20 make && make install |
pascal@4151 | 21 } |
pascal@4151 | 22 |
pascal@4151 | 23 |
pascal@4151 | 24 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@4151 | 25 genpkg_rules() |
pascal@4151 | 26 { |
pascal@4870 | 27 mkdir -p $fs/usr/bin |
pascal@4151 | 28 cp -a $_pkg/usr/bin/xz $fs/usr/bin |
slaxemulator@9724 | 29 cp $stuff/lzma $fs/usr/bin |
pascal@7616 | 30 ln -s lzma $fs/usr/bin/unlzma |
pascal@7616 | 31 ln -s lzma $fs/usr/bin/lzcat |
pascal@4151 | 32 } |
pascal@7616 | 33 |
slaxemulator@7617 | 34 # Pre and post install commands for Tazpkg. |
slaxemulator@7617 | 35 # We must remove all Busybox symlink before installing. |
slaxemulator@7617 | 36 # |
slaxemulator@7617 | 37 pre_install() |
slaxemulator@7617 | 38 { |
slaxemulator@7617 | 39 local root |
slaxemulator@7617 | 40 root=$1 |
slaxemulator@7617 | 41 echo "Processing pre-install commands..." |
slaxemulator@7617 | 42 echo -n "Removing all Busybox replaced utils... " |
slaxemulator@7617 | 43 rm -f $root/usr/bin/unlzma |
pascal@8879 | 44 rm -f $root/usr/bin/lzcat |
slaxemulator@7617 | 45 status |
slaxemulator@7617 | 46 } |
slaxemulator@7617 | 47 |
pascal@7616 | 48 post_remove() |
pascal@7616 | 49 { |
slaxemulator@8647 | 50 ln -s /bin/busybox $1/usr/bin/unlzma |
pascal@8879 | 51 ln -s /bin/busybox $1/usr/bin/lzcat |
slaxemulator@8266 | 52 } |