wok-next annotate lzma/receipt @ rev 19636

Update licenses
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Feb 10 13:19:07 2017 +0100 (2017-02-10)
parents d6ca18366f41
children 31b0fa204936
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 WEB_SITE="http://sourceforge.net/projects/sevenzip/"
pascal@15379 10 TAGS="compression archive"
pankso@15944 11 HOST_ARCH="i486 arm"
pascal@15379 12
al@19601 13 TARBALL="lzma$(echo $VERSION | sed 's/\.//').tar.bz2"
al@19601 14 WGET_URL="$SF_MIRROR/sevenzip/$TARBALL"
al@19601 15
pascal@1736 16 DEPENDS="lzlib zlib gcc-lib-base"
al@19601 17 BUILD_DEPENDS="zlib-dev"
al@19601 18 SPLIT="lzlib lzlib-dev"
gokhlayeh@8197 19
pankso@15944 20 # Rules to configure and make the package.
pankso@15944 21 compile_rules()
gokhlayeh@8197 22 {
gokhlayeh@8197 23 if [ ! -f done.lzlib.u ]; then
slaxemulator@9700 24 patch -p0 < $stuff/lzlib.u || return 1
gokhlayeh@8197 25 touch done.lzlib.u
gokhlayeh@8197 26 fi
gokhlayeh@8197 27 cd CPP/7zip/Compress/LZMA_Alone
al@19601 28
pankso@15944 29 # Handle cross compilation
pankso@15944 30 case "$ARCH" in
pankso@15944 31 arm)
pankso@15944 32 sed -i s'/g++/arm-slitaz-linux-gnueabi-c++/' makefile.gcc
pankso@15944 33 sed -i s'/gcc/arm-slitaz-linux-gnueabi-gcc/' makefile.gcc ;;
pankso@15944 34 esac
gokhlayeh@7634 35
gokhlayeh@7634 36 # Remove copyright message.
gokhlayeh@7634 37 sed '/MY_VERSION_COPYRIGHT_DATE/d' -i LzmaAlone.cpp
gokhlayeh@7634 38
al@19601 39 make -f makefile.gcc lzma 2>/dev/null
pascal@1514 40 make -f makefile.gcc liblz.so.1.0.0 &&
pascal@1514 41 make -f makefile.gcc lzma
pankso@126 42 }
pankso@126 43
pankso@126 44 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@126 45 genpkg_rules()
pankso@126 46 {
pankso@126 47 mkdir -p $fs/usr/bin
pascal@3854 48 cp -a $src/CPP/7zip/Compress/LZMA_Alone/lzma-shared $fs/usr/bin/lzma-alone
slaxemulator@9682 49 cp $stuff/lzma $fs/usr/bin
pascal@3854 50 chmod 755 $fs/usr/bin/lzma
pascal@7616 51 ln -s lzma $fs/usr/bin/unlzma
pascal@7616 52 ln -s lzma $fs/usr/bin/lzcat
pankso@126 53 }