wok-next view lzma/receipt @ rev 20369

openvas-manager (6.0.11), openvas-scanner (5.0.8)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Nov 24 20:28:53 2017 +0100 (2017-11-24)
parents 31b0fa204936
children 0e7893ac206d
line source
1 # SliTaz package receipt v2.
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 WEB_SITE="http://sourceforge.net/projects/sevenzip/"
10 TAGS="compression archive"
11 HOST_ARCH="i486 arm"
13 TARBALL="lzma$(echo $VERSION | sed 's/\.//').tar.bz2"
14 WGET_URL="$SF_MIRROR/sevenzip/$TARBALL"
16 BUILD_DEPENDS="zlib-dev"
17 SPLIT="lzma lzlib lzlib-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 if [ ! -f done.lzlib.u ]; then
23 patch -p0 < $stuff/lzlib.u || return 1
24 touch done.lzlib.u
25 fi
26 cd CPP/7zip/Compress/LZMA_Alone
28 # Handle cross compilation
29 case "$ARCH" in
30 arm)
31 sed -i s'/g++/arm-slitaz-linux-gnueabi-c++/' makefile.gcc
32 sed -i s'/gcc/arm-slitaz-linux-gnueabi-gcc/' makefile.gcc ;;
33 esac
35 # Remove copyright message.
36 sed '/MY_VERSION_COPYRIGHT_DATE/d' -i LzmaAlone.cpp
38 make -f makefile.gcc lzma 2>/dev/null
39 make -f makefile.gcc liblz.so.1.0.0 &&
40 make -f makefile.gcc lzma
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 case $PACKAGE in
47 lzma)
48 DEPENDS="lzlib zlib gcc-lib-base"
49 mkdir -p $fs/usr/bin
50 cp -a $src/CPP/7zip/Compress/LZMA_Alone/lzma-shared $fs/usr/bin/lzma-alone
51 cp $stuff/lzma $fs/usr/bin
52 chmod 755 $fs/usr/bin/lzma
53 ln -s lzma $fs/usr/bin/unlzma
54 ln -s lzma $fs/usr/bin/lzcat
55 ;;
56 lzlib-dev)
57 mkdir -p $fs/usr/include
58 cp -a $src/CPP/7zip/Compress/LZMA_Alone/lzlib.h $fs/usr/include
59 ;;
60 lzlib)
61 CAT="base-system|library"
62 DEPENDS="zlib gcc-lib-base"
63 mkdir -p $fs/lib
64 cp -a $src/CPP/7zip/Compress/LZMA_Alone/liblz.so.1.0.0 $fs/lib
65 ln -s liblz.so.1.0.0 $fs/lib/liblz.so
66 ln -s liblz.so.1.0.0 $fs/lib/liblz.so.1
67 ;;
68 esac
69 }