wok annotate lzma/receipt @ rev 25315
updated soprano and soprano-dev (2.8.0 -> 2.9.4)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jul 21 06:45:43 2022 +0100 (2022-07-21) |
parents | 86790a278e70 |
children | ad0bc3efbf37 |
rev | line source |
---|---|
pankso@126 | 1 # SliTaz package receipt. |
pankso@126 | 2 |
pankso@126 | 3 PACKAGE="lzma" |
pascal@224 | 4 VERSION="4.57" |
pankso@210 | 5 CATEGORY="base-system" |
pankso@126 | 6 SHORT_DESC="Compressor with a high compression ratio." |
pankso@126 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15379 | 8 LICENSE="LGPL2.1" |
pascal@224 | 9 TARBALL="lzma$(echo $VERSION | sed 's/\.//').tar.bz2" |
pascal@20421 | 10 WEB_SITE="https://sourceforge.net/projects/sevenzip/" |
pascal@224 | 11 WGET_URL="$SF_MIRROR/sevenzip/$TARBALL" |
pascal@15379 | 12 TAGS="compression archive" |
pankso@15944 | 13 HOST_ARCH="i486 arm" |
pascal@15379 | 14 |
pascal@1736 | 15 DEPENDS="lzlib zlib gcc-lib-base" |
gokhlayeh@8197 | 16 |
pascal@24071 | 17 current_version() |
pascal@24071 | 18 { |
pascal@24071 | 19 wget -O - https://sourceforge.net/projects/sevenzip/files/LZMA%20SDK/ 2>/dev/null | \ |
pascal@24071 | 20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24071 | 21 sed "/$PACKAGE/!d;/tar/!d;s|.*$PACKAGE\\(.\\)\\(.*\\).tar.*\".*|\\1.\\2|;q" |
pascal@24071 | 22 } |
pascal@24071 | 23 |
pankso@15944 | 24 # Rules to configure and make the package. |
pankso@15944 | 25 compile_rules() |
gokhlayeh@8197 | 26 { |
gokhlayeh@8197 | 27 if [ ! -f done.lzlib.u ]; then |
slaxemulator@9700 | 28 patch -p0 < $stuff/lzlib.u || return 1 |
gokhlayeh@8197 | 29 touch done.lzlib.u |
gokhlayeh@8197 | 30 fi |
gokhlayeh@8197 | 31 cd CPP/7zip/Compress/LZMA_Alone |
pankso@15944 | 32 |
pankso@15944 | 33 # Handle cross compilation |
pankso@15944 | 34 case "$ARCH" in |
pankso@15944 | 35 arm) |
pankso@15944 | 36 sed -i s'/g++/arm-slitaz-linux-gnueabi-c++/' makefile.gcc |
pankso@15944 | 37 sed -i s'/gcc/arm-slitaz-linux-gnueabi-gcc/' makefile.gcc ;; |
pankso@15944 | 38 esac |
gokhlayeh@7634 | 39 |
gokhlayeh@7634 | 40 # Remove copyright message. |
gokhlayeh@7634 | 41 sed '/MY_VERSION_COPYRIGHT_DATE/d' -i LzmaAlone.cpp |
gokhlayeh@7634 | 42 |
pascal@15271 | 43 make -f makefile.gcc lzma 2> /dev/null |
pascal@1514 | 44 make -f makefile.gcc liblz.so.1.0.0 && |
pascal@1514 | 45 make -f makefile.gcc lzma |
pankso@126 | 46 } |
pankso@126 | 47 |
pankso@126 | 48 |
pankso@126 | 49 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@126 | 50 genpkg_rules() |
pankso@126 | 51 { |
pankso@126 | 52 mkdir -p $fs/usr/bin |
pascal@3854 | 53 cp -a $src/CPP/7zip/Compress/LZMA_Alone/lzma-shared $fs/usr/bin/lzma-alone |
slaxemulator@9682 | 54 cp $stuff/lzma $fs/usr/bin |
pascal@3854 | 55 chmod 755 $fs/usr/bin/lzma |
pascal@7616 | 56 ln -s lzma $fs/usr/bin/unlzma |
pascal@7616 | 57 ln -s lzma $fs/usr/bin/lzcat |
pankso@126 | 58 } |
pankso@126 | 59 |
pascal@7616 | 60 post_remove() |
pascal@7616 | 61 { |
pascal@18730 | 62 ln -s /bin/busybox "$1/usr/bin/unlzma" |
pascal@18730 | 63 ln -s /bin/busybox "$1/usr/bin/lzcat" |
pascal@8878 | 64 } |