wok annotate xz/receipt @ rev 14799
Up: xz (5.0.5)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jul 13 15:04:42 2013 +0200 (2013-07-13) |
parents | a7d09b0de20c |
children | c36ddf77a3fc |
rev | line source |
---|---|
pascal@4151 | 1 # SliTaz package receipt. |
pascal@4151 | 2 |
pascal@4151 | 3 PACKAGE="xz" |
pascal@14799 | 4 VERSION="5.0.5" |
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@14799 | 8 LICENSE="PublicDomain LGPL2.1 GPL2 GPL3" |
pascal@4151 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
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@14799 | 15 DEPENDS="liblzma" |
pascal@14799 | 16 BUILD_DEPENDS="" |
pankso@12913 | 17 |
pascal@4151 | 18 # Rules to configure and make the package. |
pascal@4151 | 19 compile_rules() |
pascal@4151 | 20 { |
pascal@4151 | 21 cd $src |
pankso@12811 | 22 ./configure \ |
pankso@12811 | 23 --enable-dynamic=yes \ |
pankso@12811 | 24 --enable-small \ |
pankso@12811 | 25 $CONFIGURE_ARGS && |
slaxemulator@10045 | 26 make && make install |
pascal@4151 | 27 } |
pascal@4151 | 28 |
pascal@4151 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@4151 | 30 genpkg_rules() |
pascal@4151 | 31 { |
pankso@12913 | 32 mkdir -p $fs/usr/bin $fs/usr/lib |
pankso@12811 | 33 cp -a $install/usr/bin/xz $fs/usr/bin |
pankso@12913 | 34 cp -a $install/usr/lib/*.so* $fs/usr/lib |
slaxemulator@11129 | 35 #cp $stuff/lzma $fs/usr/bin |
slaxemulator@11129 | 36 #ln -s lzma $fs/usr/bin/unlzma |
slaxemulator@11129 | 37 #ln -s lzma $fs/usr/bin/lzcat |
pascal@4151 | 38 } |
pascal@7616 | 39 |
slaxemulator@7617 | 40 # Pre and post install commands for Tazpkg. |
slaxemulator@7617 | 41 # We must remove all Busybox symlink before installing. |
slaxemulator@7617 | 42 # |
slaxemulator@11129 | 43 #pre_install() |
slaxemulator@11129 | 44 #{ |
slaxemulator@11129 | 45 # local root |
slaxemulator@11129 | 46 # root=$1 |
slaxemulator@11129 | 47 # echo "Processing pre-install commands..." |
slaxemulator@11129 | 48 # echo -n "Removing all Busybox replaced utils... " |
slaxemulator@11129 | 49 # rm -f $root/usr/bin/unlzma |
slaxemulator@11129 | 50 # rm -f $root/usr/bin/lzcat |
slaxemulator@11129 | 51 # status |
slaxemulator@11129 | 52 #} |
slaxemulator@7617 | 53 |
slaxemulator@11129 | 54 #post_remove() |
slaxemulator@11129 | 55 #{ |
slaxemulator@11129 | 56 # ln -s /bin/busybox $1/usr/bin/unlzma |
slaxemulator@11129 | 57 # ln -s /bin/busybox $1/usr/bin/lzcat |
slaxemulator@11129 | 58 #} |