wok-next view lzma/receipt @ rev 19715

Fix building: pciutils, pcmanfm-legacy, arj
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat May 13 17:25:31 2017 +0300 (2017-05-13)
parents d6ca18366f41
children 31b0fa204936
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 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 DEPENDS="lzlib zlib gcc-lib-base"
17 BUILD_DEPENDS="zlib-dev"
18 SPLIT="lzlib lzlib-dev"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 if [ ! -f done.lzlib.u ]; then
24 patch -p0 < $stuff/lzlib.u || return 1
25 touch done.lzlib.u
26 fi
27 cd CPP/7zip/Compress/LZMA_Alone
29 # Handle cross compilation
30 case "$ARCH" in
31 arm)
32 sed -i s'/g++/arm-slitaz-linux-gnueabi-c++/' makefile.gcc
33 sed -i s'/gcc/arm-slitaz-linux-gnueabi-gcc/' makefile.gcc ;;
34 esac
36 # Remove copyright message.
37 sed '/MY_VERSION_COPYRIGHT_DATE/d' -i LzmaAlone.cpp
39 make -f makefile.gcc lzma 2>/dev/null
40 make -f makefile.gcc liblz.so.1.0.0 &&
41 make -f makefile.gcc lzma
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr/bin
48 cp -a $src/CPP/7zip/Compress/LZMA_Alone/lzma-shared $fs/usr/bin/lzma-alone
49 cp $stuff/lzma $fs/usr/bin
50 chmod 755 $fs/usr/bin/lzma
51 ln -s lzma $fs/usr/bin/unlzma
52 ln -s lzma $fs/usr/bin/lzcat
53 }