wok-6.x annotate xz/receipt @ rev 18343
Up: bash (4.3.42)
author | Alexander Medvedev <devl547@gmail.com> |
---|---|
date | Fri Sep 11 11:59:50 2015 +0000 (2015-09-11) |
parents | 63c5836ca32c |
children | 9e01bc6321ea |
rev | line source |
---|---|
pascal@4151 | 1 # SliTaz package receipt. |
pascal@4151 | 2 |
pascal@4151 | 3 PACKAGE="xz" |
pascal@18337 | 4 VERSION="5.2.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@14799 | 8 LICENSE="PublicDomain LGPL2.1 GPL2 GPL3" |
pascal@18337 | 9 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pascal@4151 | 10 WEB_SITE="http://tukaani.org/xz" |
pascal@4151 | 11 WGET_URL="$WEB_SITE/$TARBALL" |
pascal@18337 | 12 TAGS="compression archive" |
pascal@4862 | 13 PROVIDE="lzma" |
pankso@12835 | 14 HOST_ARCH="i486 arm x86_64" |
pascal@4151 | 15 |
pascal@14799 | 16 DEPENDS="liblzma" |
pascal@14799 | 17 BUILD_DEPENDS="" |
pankso@12913 | 18 |
pascal@4151 | 19 # Rules to configure and make the package. |
pascal@4151 | 20 compile_rules() |
pascal@4151 | 21 { |
pascal@4151 | 22 cd $src |
pankso@12811 | 23 ./configure \ |
pankso@12811 | 24 --enable-dynamic=yes \ |
pankso@12811 | 25 --enable-small \ |
pankso@12811 | 26 $CONFIGURE_ARGS && |
slaxemulator@10045 | 27 make && make install |
pascal@4151 | 28 } |
pascal@4151 | 29 |
pascal@4151 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@4151 | 31 genpkg_rules() |
pascal@4151 | 32 { |
pankso@12913 | 33 mkdir -p $fs/usr/bin $fs/usr/lib |
pankso@12811 | 34 cp -a $install/usr/bin/xz $fs/usr/bin |
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 #} |