wok-current annotate xz/receipt @ rev 14769
Add threaded-samba-scanner
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jun 29 11:53:19 2013 +0200 (2013-06-29) |
parents | 332d333c6408 |
children | fd331c8e3aa5 |
rev | line source |
---|---|
pascal@4151 | 1 # SliTaz package receipt. |
pascal@4151 | 2 |
pascal@4151 | 3 PACKAGE="xz" |
devl547@13852 | 4 VERSION="5.0.4" |
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@4151 | 9 WEB_SITE="http://tukaani.org/xz" |
pascal@4151 | 10 WGET_URL="$WEB_SITE/$TARBALL" |
pascal@4862 | 11 PROVIDE="lzma" |
pankso@12835 | 12 HOST_ARCH="i486 arm x86_64" |
pascal@4151 | 13 |
pankso@12913 | 14 DEPENDS="" |
pankso@12913 | 15 |
pascal@4151 | 16 # Rules to configure and make the package. |
pascal@4151 | 17 compile_rules() |
pascal@4151 | 18 { |
pascal@4151 | 19 cd $src |
pankso@12811 | 20 ./configure \ |
pankso@12811 | 21 --enable-dynamic=yes \ |
pankso@12811 | 22 --enable-small \ |
pankso@12811 | 23 $CONFIGURE_ARGS && |
slaxemulator@10045 | 24 make && make install |
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 { |
pankso@12913 | 30 mkdir -p $fs/usr/bin $fs/usr/lib |
pankso@12811 | 31 cp -a $install/usr/bin/xz $fs/usr/bin |
pankso@12913 | 32 cp -a $install/usr/lib/*.so* $fs/usr/lib |
slaxemulator@11129 | 33 #cp $stuff/lzma $fs/usr/bin |
slaxemulator@11129 | 34 #ln -s lzma $fs/usr/bin/unlzma |
slaxemulator@11129 | 35 #ln -s lzma $fs/usr/bin/lzcat |
pascal@4151 | 36 } |
pascal@7616 | 37 |
slaxemulator@7617 | 38 # Pre and post install commands for Tazpkg. |
slaxemulator@7617 | 39 # We must remove all Busybox symlink before installing. |
slaxemulator@7617 | 40 # |
slaxemulator@11129 | 41 #pre_install() |
slaxemulator@11129 | 42 #{ |
slaxemulator@11129 | 43 # local root |
slaxemulator@11129 | 44 # root=$1 |
slaxemulator@11129 | 45 # echo "Processing pre-install commands..." |
slaxemulator@11129 | 46 # echo -n "Removing all Busybox replaced utils... " |
slaxemulator@11129 | 47 # rm -f $root/usr/bin/unlzma |
slaxemulator@11129 | 48 # rm -f $root/usr/bin/lzcat |
slaxemulator@11129 | 49 # status |
slaxemulator@11129 | 50 #} |
slaxemulator@7617 | 51 |
slaxemulator@11129 | 52 #post_remove() |
slaxemulator@11129 | 53 #{ |
slaxemulator@11129 | 54 # ln -s /bin/busybox $1/usr/bin/unlzma |
slaxemulator@11129 | 55 # ln -s /bin/busybox $1/usr/bin/lzcat |
slaxemulator@11129 | 56 #} |