wok-next view lzma/receipt @ rev 18579
Up geos (3.5.0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Nov 11 14:50:32 2015 +0100 (2015-11-11) |
parents | 2a5cc8208d36 |
children | 9e01bc6321ea |
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 LICENSE="LGPL2.1"
9 TARBALL="lzma$(echo $VERSION | sed 's/\.//').tar.bz2"
10 WEB_SITE="http://sourceforge.net/projects/sevenzip/"
11 WGET_URL="$SF_MIRROR/sevenzip/$TARBALL"
12 TAGS="compression archive"
13 HOST_ARCH="i486 arm"
15 DEPENDS="lzlib zlib gcc-lib-base"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 if [ ! -f done.lzlib.u ]; then
21 patch -p0 < $stuff/lzlib.u || return 1
22 touch done.lzlib.u
23 fi
24 cd CPP/7zip/Compress/LZMA_Alone
26 # Handle cross compilation
27 case "$ARCH" in
28 arm)
29 sed -i s'/g++/arm-slitaz-linux-gnueabi-c++/' makefile.gcc
30 sed -i s'/gcc/arm-slitaz-linux-gnueabi-gcc/' makefile.gcc ;;
31 esac
33 # Remove copyright message.
34 sed '/MY_VERSION_COPYRIGHT_DATE/d' -i LzmaAlone.cpp
36 make -f makefile.gcc lzma 2> /dev/null
37 make -f makefile.gcc liblz.so.1.0.0 &&
38 make -f makefile.gcc lzma
39 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr/bin
46 cp -a $src/CPP/7zip/Compress/LZMA_Alone/lzma-shared $fs/usr/bin/lzma-alone
47 cp $stuff/lzma $fs/usr/bin
48 chmod 755 $fs/usr/bin/lzma
49 ln -s lzma $fs/usr/bin/unlzma
50 ln -s lzma $fs/usr/bin/lzcat
51 }
53 # Pre and post install commands for Tazpkg.
54 # We must remove all Busybox symlink before installing.
55 #
56 pre_install()
57 {
58 local root
59 root=$1
60 echo "Processing pre-install commands..."
61 echo -n "Removing all Busybox replaced utils... "
62 rm -f $root/usr/bin/unlzma
63 rm -f $root/usr/bin/lzcat
64 status
65 }
67 post_remove()
68 {
69 ln -s /bin/busybox $1/usr/bin/unlzma
70 ln -s /bin/busybox $1/usr/bin/lzcat
71 }