wok-next annotate lzma/receipt @ rev 15746
Up: obconf (2.0.4). No more get source from GIT
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Fri Jan 03 00:18:36 2014 +0100 (2014-01-03) |
parents | b2c3e949d4ff |
children | f6332424127f |
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@15379 | 8 LICENSE="LGPL2.1" |
pascal@224 | 9 TARBALL="lzma$(echo $VERSION | sed 's/\.//').tar.bz2" |
pascal@224 | 10 WEB_SITE="http://sourceforge.net/projects/sevenzip/" |
pascal@224 | 11 WGET_URL="$SF_MIRROR/sevenzip/$TARBALL" |
pascal@15379 | 12 TAGS="compression archive" |
pascal@15379 | 13 |
pascal@1736 | 14 DEPENDS="lzlib zlib gcc-lib-base" |
gokhlayeh@8197 | 15 |
gokhlayeh@8197 | 16 # Rules to compile & install the temporary toolchain. |
gokhlayeh@8197 | 17 cook_tmp_toolchain() |
gokhlayeh@8197 | 18 { |
gokhlayeh@8197 | 19 # Put & configure the home-script as needed for tmp toolchain. |
gokhlayeh@8197 | 20 rm /tools/usr/bin/lzma /tools/usr/bin/unlzma /tools/usr/bin/lzcat |
gokhlayeh@8197 | 21 cp stuff/lzma /tools/usr/bin |
gokhlayeh@8197 | 22 chmod 755 /tools/usr/bin/lzma |
gokhlayeh@8197 | 23 ln -s /tools/usr/bin/lzma /tools/usr/bin/unlzma |
gokhlayeh@8197 | 24 ln -s /tools/usr/bin/lzma /tools/usr/bin/lzcat |
gokhlayeh@8197 | 25 sed 's~/usr~/tools/usr~' -i /tools/usr/bin/lzma |
gokhlayeh@8197 | 26 |
gokhlayeh@8197 | 27 cd $src |
gokhlayeh@8197 | 28 if [ ! -f done.lzlib.u ]; then |
slaxemulator@9700 | 29 patch -p0 < $stuff/lzlib.u || return 1 |
gokhlayeh@8197 | 30 touch done.lzlib.u |
gokhlayeh@8197 | 31 fi |
gokhlayeh@8197 | 32 cd CPP/7zip/Compress/LZMA_Alone |
gokhlayeh@8197 | 33 |
gokhlayeh@8197 | 34 # Remove copyright message. |
gokhlayeh@8197 | 35 sed '/MY_VERSION_COPYRIGHT_DATE/d' -i LzmaAlone.cpp |
gokhlayeh@8197 | 36 |
pascal@15271 | 37 make -f makefile.gcc lzma 2> /dev/null |
gokhlayeh@8197 | 38 { make -f makefile.gcc liblz.so.1.0.0 && |
gokhlayeh@8197 | 39 make -f makefile.gcc lzma |
gokhlayeh@8197 | 40 } || return 1 |
gokhlayeh@8197 | 41 |
gokhlayeh@8197 | 42 cp -a lzma-shared /tools/usr/bin/lzma-alone |
gokhlayeh@8197 | 43 cp -a liblz.so.1.0.0 /tools/lib |
gokhlayeh@8197 | 44 ln -s /tools/lib/liblz.so.1.0.0 /tools/lib/liblz.so |
gokhlayeh@8197 | 45 ln -s /tools/lib/liblz.so.1.0.0 /tools/lib/liblz.so.1 |
gokhlayeh@8197 | 46 } |
gokhlayeh@8197 | 47 |
pankso@126 | 48 |
pankso@126 | 49 # Rules to configure and make the package. |
pankso@126 | 50 compile_rules() |
pankso@126 | 51 { |
pascal@1449 | 52 cd $src |
pascal@1442 | 53 if [ ! -f done.lzlib.u ]; then |
slaxemulator@9682 | 54 patch -p0 < $stuff/lzlib.u || return 1 |
pascal@1442 | 55 touch done.lzlib.u |
pascal@1442 | 56 fi |
gokhlayeh@7902 | 57 cd CPP/7zip/Compress/LZMA_Alone |
gokhlayeh@7634 | 58 |
gokhlayeh@7634 | 59 # Remove copyright message. |
gokhlayeh@7634 | 60 sed '/MY_VERSION_COPYRIGHT_DATE/d' -i LzmaAlone.cpp |
gokhlayeh@7634 | 61 |
pascal@15271 | 62 make -f makefile.gcc lzma 2> /dev/null |
pascal@1514 | 63 make -f makefile.gcc liblz.so.1.0.0 && |
pascal@1514 | 64 make -f makefile.gcc lzma |
pankso@126 | 65 } |
pankso@126 | 66 |
pankso@126 | 67 |
pankso@126 | 68 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@126 | 69 genpkg_rules() |
pankso@126 | 70 { |
pankso@126 | 71 mkdir -p $fs/usr/bin |
pascal@3854 | 72 cp -a $src/CPP/7zip/Compress/LZMA_Alone/lzma-shared $fs/usr/bin/lzma-alone |
slaxemulator@9682 | 73 cp $stuff/lzma $fs/usr/bin |
pascal@3854 | 74 chmod 755 $fs/usr/bin/lzma |
pascal@7616 | 75 ln -s lzma $fs/usr/bin/unlzma |
pascal@7616 | 76 ln -s lzma $fs/usr/bin/lzcat |
pankso@126 | 77 } |
pankso@126 | 78 |
slaxemulator@7617 | 79 # Pre and post install commands for Tazpkg. |
slaxemulator@7617 | 80 # We must remove all Busybox symlink before installing. |
slaxemulator@7617 | 81 # |
slaxemulator@7617 | 82 pre_install() |
slaxemulator@7617 | 83 { |
slaxemulator@7617 | 84 local root |
slaxemulator@7617 | 85 root=$1 |
slaxemulator@7617 | 86 echo "Processing pre-install commands..." |
slaxemulator@7617 | 87 echo -n "Removing all Busybox replaced utils... " |
slaxemulator@7617 | 88 rm -f $root/usr/bin/unlzma |
pascal@8878 | 89 rm -f $root/usr/bin/lzcat |
slaxemulator@7617 | 90 status |
slaxemulator@7617 | 91 } |
slaxemulator@7617 | 92 |
pascal@7616 | 93 post_remove() |
pascal@7616 | 94 { |
slaxemulator@9682 | 95 ln -s /bin/busybox $1/usr/bin/unlzma |
slaxemulator@9682 | 96 ln -s /bin/busybox $1/usr/bin/lzcat |
pascal@8878 | 97 } |