wok-next view lzma/receipt @ rev 20200
libgnomeprint: add bison 3 patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Nov 03 17:38:15 2017 +0100 (2017-11-03) |
parents | 18c4d15a72df |
children | 0f73d1ab267c |
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 CAT="development|Compressor with a high compression ratio devel files."
58 mkdir -p $fs/usr/include
59 cp -a $src/CPP/7zip/Compress/LZMA_Alone/lzlib.h $fs/usr/include
60 ;;
61 lzlib)
62 CAT="base-system|Compressor with a high compression ratio library."
63 DEPENDS="zlib gcc-lib-base"
64 mkdir -p $fs/lib
65 cp -a $src/CPP/7zip/Compress/LZMA_Alone/liblz.so.1.0.0 $fs/lib
66 ln -s liblz.so.1.0.0 $fs/lib/liblz.so
67 ln -s liblz.so.1.0.0 $fs/lib/liblz.so.1
68 ;;
69 esac
70 }