wok annotate xz/receipt @ rev 12867
Up: avidemux to 2.5.6.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Thu May 24 21:30:14 2012 +0000 (2012-05-24) |
parents | fc477d1ae77b |
children | 332d333c6408 |
rev | line source |
---|---|
pascal@4151 | 1 # SliTaz package receipt. |
pascal@4151 | 2 |
pascal@4151 | 3 PACKAGE="xz" |
slaxemulator@11129 | 4 VERSION="5.0.3" |
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" |
pankso@12835 | 13 HOST_ARCH="i486 arm x86_64" |
pascal@4151 | 14 |
pascal@4151 | 15 # Rules to configure and make the package. |
pascal@4151 | 16 compile_rules() |
pascal@4151 | 17 { |
pascal@4151 | 18 cd $src |
pankso@12811 | 19 ./configure \ |
pankso@12811 | 20 --enable-dynamic=yes \ |
pankso@12811 | 21 --enable-small \ |
pankso@12811 | 22 $CONFIGURE_ARGS && |
slaxemulator@10045 | 23 make && make install |
pascal@4151 | 24 } |
pascal@4151 | 25 |
pascal@4151 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@4151 | 27 genpkg_rules() |
pascal@4151 | 28 { |
pascal@4870 | 29 mkdir -p $fs/usr/bin |
pankso@12811 | 30 cp -a $install/usr/bin/xz $fs/usr/bin |
slaxemulator@11129 | 31 #cp $stuff/lzma $fs/usr/bin |
slaxemulator@11129 | 32 #ln -s lzma $fs/usr/bin/unlzma |
slaxemulator@11129 | 33 #ln -s lzma $fs/usr/bin/lzcat |
pascal@4151 | 34 } |
pascal@7616 | 35 |
slaxemulator@7617 | 36 # Pre and post install commands for Tazpkg. |
slaxemulator@7617 | 37 # We must remove all Busybox symlink before installing. |
slaxemulator@7617 | 38 # |
slaxemulator@11129 | 39 #pre_install() |
slaxemulator@11129 | 40 #{ |
slaxemulator@11129 | 41 # local root |
slaxemulator@11129 | 42 # root=$1 |
slaxemulator@11129 | 43 # echo "Processing pre-install commands..." |
slaxemulator@11129 | 44 # echo -n "Removing all Busybox replaced utils... " |
slaxemulator@11129 | 45 # rm -f $root/usr/bin/unlzma |
slaxemulator@11129 | 46 # rm -f $root/usr/bin/lzcat |
slaxemulator@11129 | 47 # status |
slaxemulator@11129 | 48 #} |
slaxemulator@7617 | 49 |
slaxemulator@11129 | 50 #post_remove() |
slaxemulator@11129 | 51 #{ |
slaxemulator@11129 | 52 # ln -s /bin/busybox $1/usr/bin/unlzma |
slaxemulator@11129 | 53 # ln -s /bin/busybox $1/usr/bin/lzcat |
slaxemulator@11129 | 54 #} |