wok-current view lzma/receipt @ rev 24645
updated hiredis and hiredis-dev (0.14.0 -> 1.0.2)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Mar 10 09:47:42 2022 +0100 (2022-03-10) |
parents | 86790a278e70 |
children | ad0bc3efbf37 |
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 current_version()
18 {
19 wget -O - https://sourceforge.net/projects/sevenzip/files/LZMA%20SDK/ 2>/dev/null | \
20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
21 sed "/$PACKAGE/!d;/tar/!d;s|.*$PACKAGE\\(.\\)\\(.*\\).tar.*\".*|\\1.\\2|;q"
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 if [ ! -f done.lzlib.u ]; then
28 patch -p0 < $stuff/lzlib.u || return 1
29 touch done.lzlib.u
30 fi
31 cd CPP/7zip/Compress/LZMA_Alone
33 # Handle cross compilation
34 case "$ARCH" in
35 arm)
36 sed -i s'/g++/arm-slitaz-linux-gnueabi-c++/' makefile.gcc
37 sed -i s'/gcc/arm-slitaz-linux-gnueabi-gcc/' makefile.gcc ;;
38 esac
40 # Remove copyright message.
41 sed '/MY_VERSION_COPYRIGHT_DATE/d' -i LzmaAlone.cpp
43 make -f makefile.gcc lzma 2> /dev/null
44 make -f makefile.gcc liblz.so.1.0.0 &&
45 make -f makefile.gcc lzma
46 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 mkdir -p $fs/usr/bin
53 cp -a $src/CPP/7zip/Compress/LZMA_Alone/lzma-shared $fs/usr/bin/lzma-alone
54 cp $stuff/lzma $fs/usr/bin
55 chmod 755 $fs/usr/bin/lzma
56 ln -s lzma $fs/usr/bin/unlzma
57 ln -s lzma $fs/usr/bin/lzcat
58 }
60 post_remove()
61 {
62 ln -s /bin/busybox "$1/usr/bin/unlzma"
63 ln -s /bin/busybox "$1/usr/bin/lzcat"
64 }