wok view lzma/receipt @ rev 7720

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