wok-next annotate lzma/receipt @ rev 7634
lzma: remove (outdated) copyright message.
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Mon Dec 13 14:28:07 2010 +0100 (2010-12-13) |
parents | f067d5386393 |
children | 7941d6ba7e42 |
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 |
gokhlayeh@7634 | 30 |
gokhlayeh@7634 | 31 # Remove copyright message. |
gokhlayeh@7634 | 32 sed '/MY_VERSION_COPYRIGHT_DATE/d' -i LzmaAlone.cpp |
gokhlayeh@7634 | 33 |
pascal@224 | 34 cd CPP/7zip/Compress/LZMA_Alone |
pascal@1514 | 35 make -f makefile.gcc lzma |
pascal@1514 | 36 make -f makefile.gcc liblz.so.1.0.0 && |
pascal@1514 | 37 make -f makefile.gcc lzma |
pankso@126 | 38 } |
pankso@126 | 39 |
pankso@126 | 40 |
pankso@126 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@126 | 42 genpkg_rules() |
pankso@126 | 43 { |
pankso@126 | 44 mkdir -p $fs/usr/bin |
pascal@3854 | 45 cp -a $src/CPP/7zip/Compress/LZMA_Alone/lzma-shared $fs/usr/bin/lzma-alone |
pascal@3854 | 46 cp stuff/lzma $fs/usr/bin |
pascal@3854 | 47 chmod 755 $fs/usr/bin/lzma |
pascal@7616 | 48 ln -s lzma $fs/usr/bin/unlzma |
pascal@7616 | 49 ln -s lzma $fs/usr/bin/lzcat |
pankso@126 | 50 } |
pankso@126 | 51 |
slaxemulator@7617 | 52 # Pre and post install commands for Tazpkg. |
slaxemulator@7617 | 53 # We must remove all Busybox symlink before installing. |
slaxemulator@7617 | 54 # |
slaxemulator@7617 | 55 pre_install() |
slaxemulator@7617 | 56 { |
slaxemulator@7617 | 57 local root |
slaxemulator@7617 | 58 root=$1 |
slaxemulator@7617 | 59 echo "Processing pre-install commands..." |
slaxemulator@7617 | 60 echo -n "Removing all Busybox replaced utils... " |
slaxemulator@7617 | 61 rm -f $root/usr/bin/unlzma |
slaxemulator@7617 | 62 status |
slaxemulator@7617 | 63 } |
slaxemulator@7617 | 64 |
pascal@7616 | 65 post_remove() |
pascal@7616 | 66 { |
slaxemulator@7617 | 67 ln -s /bin/busybox /usr/bin/unlzma |
slaxemulator@7617 | 68 } |