wok view lzma/receipt @ rev 21624
updated ogmrip (0.13.7 -> 1.0.1)
author | Hans-G?nter Theisgen |
---|---|
date | Mon May 27 14:14:39 2019 +0100 (2019-05-27) |
parents | d6ca18366f41 |
children | ee53899c6189 |
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 TARBALL="lzma$(echo $VERSION | sed 's/\.//').tar.bz2"
10 WEB_SITE="https://sourceforge.net/projects/sevenzip/"
11 WGET_URL="$SF_MIRROR/sevenzip/$TARBALL"
12 TAGS="compression archive"
13 HOST_ARCH="i486 arm"
15 DEPENDS="lzlib zlib gcc-lib-base"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 if [ ! -f done.lzlib.u ]; then
21 patch -p0 < $stuff/lzlib.u || return 1
22 touch done.lzlib.u
23 fi
24 cd CPP/7zip/Compress/LZMA_Alone
26 # Handle cross compilation
27 case "$ARCH" in
28 arm)
29 sed -i s'/g++/arm-slitaz-linux-gnueabi-c++/' makefile.gcc
30 sed -i s'/gcc/arm-slitaz-linux-gnueabi-gcc/' makefile.gcc ;;
31 esac
33 # Remove copyright message.
34 sed '/MY_VERSION_COPYRIGHT_DATE/d' -i LzmaAlone.cpp
36 make -f makefile.gcc lzma 2> /dev/null
37 make -f makefile.gcc liblz.so.1.0.0 &&
38 make -f makefile.gcc lzma
39 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr/bin
46 cp -a $src/CPP/7zip/Compress/LZMA_Alone/lzma-shared $fs/usr/bin/lzma-alone
47 cp $stuff/lzma $fs/usr/bin
48 chmod 755 $fs/usr/bin/lzma
49 ln -s lzma $fs/usr/bin/unlzma
50 ln -s lzma $fs/usr/bin/lzcat
51 }
53 post_remove()
54 {
55 ln -s /bin/busybox "$1/usr/bin/unlzma"
56 ln -s /bin/busybox "$1/usr/bin/lzcat"
57 }