wok-next annotate xz/receipt @ rev 11502
libglade: Try to fix build
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Thu Dec 22 10:46:12 2011 +0100 (2011-12-22) |
parents | b3a7c42da734 |
children | fc477d1ae77b |
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" |
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@11129 | 29 #cp $stuff/lzma $fs/usr/bin |
slaxemulator@11129 | 30 #ln -s lzma $fs/usr/bin/unlzma |
slaxemulator@11129 | 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@11129 | 37 #pre_install() |
slaxemulator@11129 | 38 #{ |
slaxemulator@11129 | 39 # local root |
slaxemulator@11129 | 40 # root=$1 |
slaxemulator@11129 | 41 # echo "Processing pre-install commands..." |
slaxemulator@11129 | 42 # echo -n "Removing all Busybox replaced utils... " |
slaxemulator@11129 | 43 # rm -f $root/usr/bin/unlzma |
slaxemulator@11129 | 44 # rm -f $root/usr/bin/lzcat |
slaxemulator@11129 | 45 # status |
slaxemulator@11129 | 46 #} |
slaxemulator@7617 | 47 |
slaxemulator@11129 | 48 #post_remove() |
slaxemulator@11129 | 49 #{ |
slaxemulator@11129 | 50 # ln -s /bin/busybox $1/usr/bin/unlzma |
slaxemulator@11129 | 51 # ln -s /bin/busybox $1/usr/bin/lzcat |
slaxemulator@11129 | 52 #} |