wok annotate lzma/receipt @ rev 7617
lzma, xz: Fixed removeal of unlzma in post_install and pre_install.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun Dec 12 08:04:46 2010 +0000 (2010-12-12) |
parents | 79ebfa5003d6 |
children | 6dcea00d3e3b |
rev | line source |
---|---|
pankso@126 | 1 # SliTaz package receipt. |
pankso@126 | 2 |
pankso@126 | 3 PACKAGE="lzma" |
pascal@224 | 4 VERSION="4.57" |
pankso@210 | 5 CATEGORY="base-system" |
pankso@126 | 6 SHORT_DESC="Compressor with a high compression ratio." |
pankso@126 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@224 | 8 TARBALL="lzma$(echo $VERSION | sed 's/\.//').tar.bz2" |
pascal@224 | 9 WEB_SITE="http://sourceforge.net/projects/sevenzip/" |
pascal@224 | 10 WGET_URL="$SF_MIRROR/sevenzip/$TARBALL" |
pascal@1736 | 11 DEPENDS="lzlib zlib gcc-lib-base" |
pascal@1514 | 12 BUILD_DEPENDS="zlib-dev" |
pankso@126 | 13 |
pankso@126 | 14 # Rules to configure and make the package. |
pankso@126 | 15 compile_rules() |
pankso@126 | 16 { |
pascal@1449 | 17 mkdir -p $src |
pascal@1449 | 18 cd $src |
pascal@1449 | 19 for i in ../* ; do |
pascal@1449 | 20 case "$i" in |
pascal@1449 | 21 ../receipt*|../taz|../stuff|../process.log);; |
pascal@1449 | 22 ../$(basename $src));; |
pascal@1449 | 23 *) mv $i .;; |
pascal@1449 | 24 esac |
pascal@1449 | 25 done |
pascal@1442 | 26 if [ ! -f done.lzlib.u ]; then |
pascal@1449 | 27 patch -p0 < ../stuff/lzlib.u || return 1 |
pascal@1442 | 28 touch done.lzlib.u |
pascal@1442 | 29 fi |
pascal@224 | 30 cd CPP/7zip/Compress/LZMA_Alone |
pascal@1514 | 31 make -f makefile.gcc lzma |
pascal@1514 | 32 make -f makefile.gcc liblz.so.1.0.0 && |
pascal@1514 | 33 make -f makefile.gcc lzma |
pankso@126 | 34 } |
pankso@126 | 35 |
pankso@126 | 36 |
pankso@126 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@126 | 38 genpkg_rules() |
pankso@126 | 39 { |
pankso@126 | 40 mkdir -p $fs/usr/bin |
pascal@3854 | 41 cp -a $src/CPP/7zip/Compress/LZMA_Alone/lzma-shared $fs/usr/bin/lzma-alone |
pascal@3854 | 42 cp stuff/lzma $fs/usr/bin |
pascal@3854 | 43 chmod 755 $fs/usr/bin/lzma |
pascal@7616 | 44 ln -s lzma $fs/usr/bin/unlzma |
pascal@7616 | 45 ln -s lzma $fs/usr/bin/lzcat |
pankso@126 | 46 } |
pankso@126 | 47 |
slaxemulator@7617 | 48 # Pre and post install commands for Tazpkg. |
slaxemulator@7617 | 49 # We must remove all Busybox symlink before installing. |
slaxemulator@7617 | 50 # |
slaxemulator@7617 | 51 pre_install() |
slaxemulator@7617 | 52 { |
slaxemulator@7617 | 53 local root |
slaxemulator@7617 | 54 root=$1 |
slaxemulator@7617 | 55 echo "Processing pre-install commands..." |
slaxemulator@7617 | 56 echo -n "Removing all Busybox replaced utils... " |
slaxemulator@7617 | 57 rm -f $root/usr/bin/unlzma |
slaxemulator@7617 | 58 status |
slaxemulator@7617 | 59 } |
slaxemulator@7617 | 60 |
pascal@7616 | 61 post_remove() |
pascal@7616 | 62 { |
slaxemulator@7617 | 63 ln -s /bin/busybox /usr/bin/unlzma |
slaxemulator@7617 | 64 } |