wok-next annotate lzma/receipt @ rev 19027

syslinux/iso2exe: update partition size
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Apr 03 10:27:26 2016 +0200 (2016-04-03)
parents 9e01bc6321ea
children 18c4d15a72df
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@224 10 WEB_SITE="http://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
pankso@15944 17 # Rules to configure and make the package.
pankso@15944 18 compile_rules()
gokhlayeh@8197 19 {
gokhlayeh@8197 20 if [ ! -f done.lzlib.u ]; then
slaxemulator@9700 21 patch -p0 < $stuff/lzlib.u || return 1
gokhlayeh@8197 22 touch done.lzlib.u
gokhlayeh@8197 23 fi
gokhlayeh@8197 24 cd CPP/7zip/Compress/LZMA_Alone
pankso@15944 25
pankso@15944 26 # Handle cross compilation
pankso@15944 27 case "$ARCH" in
pankso@15944 28 arm)
pankso@15944 29 sed -i s'/g++/arm-slitaz-linux-gnueabi-c++/' makefile.gcc
pankso@15944 30 sed -i s'/gcc/arm-slitaz-linux-gnueabi-gcc/' makefile.gcc ;;
pankso@15944 31 esac
gokhlayeh@7634 32
gokhlayeh@7634 33 # Remove copyright message.
gokhlayeh@7634 34 sed '/MY_VERSION_COPYRIGHT_DATE/d' -i LzmaAlone.cpp
gokhlayeh@7634 35
pascal@15271 36 make -f makefile.gcc lzma 2> /dev/null
pascal@1514 37 make -f makefile.gcc liblz.so.1.0.0 &&
pascal@1514 38 make -f makefile.gcc lzma
pankso@126 39 }
pankso@126 40
pankso@126 41
pankso@126 42 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@126 43 genpkg_rules()
pankso@126 44 {
pankso@126 45 mkdir -p $fs/usr/bin
pascal@3854 46 cp -a $src/CPP/7zip/Compress/LZMA_Alone/lzma-shared $fs/usr/bin/lzma-alone
slaxemulator@9682 47 cp $stuff/lzma $fs/usr/bin
pascal@3854 48 chmod 755 $fs/usr/bin/lzma
pascal@7616 49 ln -s lzma $fs/usr/bin/unlzma
pascal@7616 50 ln -s lzma $fs/usr/bin/lzcat
pankso@126 51 }
pankso@126 52
pascal@7616 53 post_remove()
pascal@7616 54 {
pascal@18730 55 ln -s /bin/busybox "$1/usr/bin/unlzma"
pascal@18730 56 ln -s /bin/busybox "$1/usr/bin/lzcat"
pascal@8878 57 }