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