wok-next view lzma/receipt @ rev 20730
glib: up (2.56.1) with static libs and Python2
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue May 29 15:17:41 2018 +0300 (2018-05-29) |
parents | 0a5b410586a2 |
children | e7a485521d6a |
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/"
11 TARBALL="lzma$(echo $VERSION | sed 's/\.//').tar.bz2"
12 WGET_URL="$SF_MIRROR/sevenzip/$TARBALL"
14 BUILD_DEPENDS="zlib-dev"
15 SPLIT="lzma lzlib lzlib-dev"
17 compile_rules() {
18 cd CPP/7zip/Compress/LZMA_Alone
20 # Handle cross compilation
21 case "$ARCH" in
22 arm)
23 sed -i s'/g++/arm-slitaz-linux-gnueabi-c++/' makefile.gcc
24 sed -i s'/gcc/arm-slitaz-linux-gnueabi-gcc/' makefile.gcc ;;
25 esac
27 # Remove copyright message.
28 sed '/MY_VERSION_COPYRIGHT_DATE/d' -i LzmaAlone.cpp
30 dos2unix makefile.gcc
31 sed -i 's|^CFLAGS =.*|& -fPIC|' makefile.gcc
33 title 'Making lzma'
34 make -f makefile.gcc lzma 2>/dev/null
35 title 'Making liblz.so'
36 make -f makefile.gcc liblz.so.1.0.0 &&
37 title 'Making lzma (again)' &&
38 make -f makefile.gcc lzma || return 1
40 # install libs
41 install -Dm755 liblz.so.1.0.0 $install/lib/liblz.so.1.0.0
42 ln -s liblz.so.1.0.0 $install/lib/liblz.so
43 ln -s liblz.so.1.0.0 $install/lib/liblz.so.1
45 # install bins
46 install -Dm755 lzma-shared $install/usr/bin/lzma-alone
47 install -Dm755 $stuff/lzma $install/usr/bin/lzma
48 ln -s lzma $install/usr/bin/unlzma
49 ln -s lzma $install/usr/bin/lzcat
51 # install header
52 install -Dm644 lzlib.h $install/usr/include/lzlib.h
53 }
55 genpkg_rules() {
56 case $PACKAGE in
57 lzma)
58 copy bin/
59 DEPENDS="lzlib"
60 TAGS="compression archive"
61 ;;
62 lzlib)
63 copy lib/
64 CAT="base-system|library"
65 DEPENDS="zlib"
66 ;;
67 *-dev)
68 copy @dev
69 ;;
70 esac
71 }