wok-next view lzma/receipt @ rev 21498
updated aspell-dicts (0.60.6.1 -> 0.60.8)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jun 18 21:48:58 2020 +0100 (2020-06-18) |
parents | e7a485521d6a |
children |
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="https://tukaani.org/lzma/"
11 TARBALL="lzma$(echo $VERSION | sed 's/\.//').tar.bz2"
12 WGET_URL="$SF_MIRROR/sevenzip/$TARBALL"
14 BUILD_DEPENDS="zlib-dev"
15 SPLIT="lzlib lzlib-dev"
17 compile_rules() {
18 cd CPP/7zip/Compress/LZMA_Alone
20 # Remove copyright message.
21 sed '/MY_VERSION_COPYRIGHT_DATE/d' -i LzmaAlone.cpp
23 dos2unix makefile.gcc
24 sed -i 's|^CFLAGS =.*|& -fPIC|' makefile.gcc
26 title 'Making lzma'
27 make -f makefile.gcc lzma 2>/dev/null
28 title 'Making liblz.so'
29 make -f makefile.gcc liblz.so.1.0.0 &&
30 title 'Making lzma (again)' &&
31 make -f makefile.gcc lzma || return 1
33 # install libs
34 install -Dm755 liblz.so.1.0.0 $install/lib/liblz.so.1.0.0
35 ln -s liblz.so.1.0.0 $install/lib/liblz.so
36 ln -s liblz.so.1.0.0 $install/lib/liblz.so.1
38 # install bins
39 install -Dm755 lzma-shared $install/usr/bin/lzma-alone
40 install -Dm755 $stuff/lzma $install/usr/bin/lzma
41 ln -s lzma $install/usr/bin/unlzma
42 ln -s lzma $install/usr/bin/lzcat
44 # install header
45 install -Dm644 lzlib.h $install/usr/include/lzlib.h
46 }
48 genpkg_rules() {
49 case $PACKAGE in
50 lzma)
51 copy bin/
52 DEPENDS="lzlib"
53 TAGS="compression archive"
54 ;;
55 lzlib)
56 copy lib/
57 CAT="base-system|library"
58 DEPENDS="zlib"
59 ;;
60 *-dev)
61 copy @dev
62 ;;
63 esac
64 }