wok rev 11253

upx: Fixed ucl and upx to be more compatable with my wok-tank cooking branch and still be compatible with official cookutils.
author Christopher Rogers <slaxemulator@gmail.com>
date Mon Nov 07 10:04:51 2011 +0000 (2011-11-07)
parents 0547a154c252
children b9e94044b040
files ucl/receipt upx/receipt
line diff
     1.1 --- a/ucl/receipt	Mon Nov 07 06:42:39 2011 +0000
     1.2 +++ b/ucl/receipt	Mon Nov 07 10:04:51 2011 +0000
     1.3 @@ -3,25 +3,23 @@
     1.4  PACKAGE="ucl"
     1.5  VERSION="1.03"
     1.6  CATEGORY="system-tools"
     1.7 -SHORT_DESC="the UCL Compression Library"
     1.8 +SHORT_DESC="Portable lossless data compression library written in ANSI C"
     1.9  MAINTAINER="devl547@gmail.com"
    1.10 +WEB_SITE="http://www.oberhumer.com/opensource/ucl/"
    1.11  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.12 -WEB_SITE="http://www.oberhumer.com/opensource/ucl/"
    1.13  WGET_URL="$WEB_SITE/download/$TARBALL"
    1.14  
    1.15  # Rules to configure and make the package.
    1.16  compile_rules()
    1.17  {
    1.18  	cd $src
    1.19 -	./configure \
    1.20 -	--enable-shared \
    1.21 -	$CONFIGURE_ARGS &&
    1.22 -	make $MAKEFLAGS && make install
    1.23 +	./configure --enable-shared $CONFIGURE_ARGS && 
    1.24 +	make && make install
    1.25  }
    1.26  
    1.27  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.28  genpkg_rules()
    1.29  {
    1.30 -	mkdir -p $fs/usr/lib 
    1.31 +	mkdir -p $fs/usr/lib
    1.32  	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
    1.33  }
     2.1 --- a/upx/receipt	Mon Nov 07 06:42:39 2011 +0000
     2.2 +++ b/upx/receipt	Mon Nov 07 10:04:51 2011 +0000
     2.3 @@ -1,36 +1,32 @@
     2.4  # SliTaz package receipt.
     2.5 -#
     2.6  
     2.7  PACKAGE="upx"
     2.8  VERSION="3.07"
     2.9  CATEGORY="system-tools"
    2.10  SHORT_DESC="Ultimate Packer for eXecutables (free version using UCL compression)"
    2.11  MAINTAINER="devl547@gmail.com"
    2.12 +WEB_SITE="http://upx.sourceforge.net/"
    2.13 +TARBALL="$PACKAGE-$VERSION-src.tar.bz2"
    2.14 +WGET_URL="http://upx.sourceforge.net/download/$TARBALL"
    2.15 +PATCH="http://downloads.sourceforge.net/sevenzip/lzma465.tar.bz2"
    2.16 +
    2.17  DEPENDS="ucl zlib"
    2.18  BUILD_DEPENDS="ucl-dev zlib-dev"
    2.19 -TARBALL="$PACKAGE-$VERSION-src.tar.bz2"
    2.20 -WEB_SITE="http://upx.sourceforge.net"
    2.21 -WGET_URL="$WEB_SITE/download/$TARBALL"
    2.22 -LZMA_TARBALL="lzma465.tar.bz2"
    2.23 -LZMA_SOURCE="http://downloads.sourceforge.net/sevenzip/$LZMA_TARBALL"
    2.24  
    2.25  # Rules to configure and make the package.
    2.26  compile_rules()
    2.27  {
    2.28 +	[ -s $SOURCES_REPOSITORY/$(basename $PATCH) ] ||
    2.29 +		wget -P $SOURCES_REPOSITORY $PATCH
    2.30 +	tar -xjpf $SOURCES_REPOSITORY/$(basename $PATCH)
    2.31 +	CXXFLAGS="$CXXFLAGS -DWITH_ZLIB=1"
    2.32  	cd $src
    2.33 -	wget $LZMA_SOURCE
    2.34 -	tar -xjpf $LZMA_TARBALL
    2.35 -	#./configure $CONFIGURE_ARGS &&
    2.36 -	CXXFLAGS="$CXXFLAGS -DWITH_ZLIB=1"
    2.37 -	UPX_LZMADIR=$src make all $MAKEFLAGS
    2.38 -	cd src
    2.39 -	mv upx.out upx
    2.40 +	UPX_LZMADIR=$src make all
    2.41  }
    2.42  
    2.43  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.44  genpkg_rules()
    2.45  {
    2.46  	mkdir -p $fs/usr/bin
    2.47 -	cp -a $src/src/upx $fs/usr/bin/
    2.48 +	cp -a $src/src/upx.out $fs/usr/bin/upx
    2.49  }
    2.50 -