wok-next annotate upx/receipt @ rev 11250
Add: ucl and upx-ucl (opensource version)
author | Alexander Medvedev <devl547@gmail.com> |
---|---|
date | Mon Nov 07 11:04:50 2011 +0000 (2011-11-07) |
parents | |
children | 6ee191c3fa9e |
rev | line source |
---|---|
devl547@11250 | 1 # SliTaz package receipt. |
devl547@11250 | 2 # |
devl547@11250 | 3 |
devl547@11250 | 4 PACKAGE="upx" |
devl547@11250 | 5 VERSION="3.07" |
devl547@11250 | 6 CATEGORY="system-tools" |
devl547@11250 | 7 SHORT_DESC="Ultimate Packer for eXecutables (free version using UCL compression)" |
devl547@11250 | 8 MAINTAINER="devl547@gmail.com" |
devl547@11250 | 9 DEPENDS="ucl zlib" |
devl547@11250 | 10 BUILD_DEPENDS="ucl-dev zlib-dev" |
devl547@11250 | 11 TARBALL="$PACKAGE-$VERSION-src.tar.bz2" |
devl547@11250 | 12 WEB_SITE="http://upx.sourceforge.net" |
devl547@11250 | 13 WGET_URL="$WEB_SITE/download/$TARBALL" |
devl547@11250 | 14 LZMA_TARBALL="lzma465.tar.bz2" |
devl547@11250 | 15 LZMA_SOURCE="http://downloads.sourceforge.net/sevenzip/$LZMA_TARBALL" |
devl547@11250 | 16 |
devl547@11250 | 17 # Rules to configure and make the package. |
devl547@11250 | 18 compile_rules() |
devl547@11250 | 19 { |
devl547@11250 | 20 cd $src |
devl547@11250 | 21 wget $LZMA_SOURCE |
devl547@11250 | 22 tar -xjpf $LZMA_TARBALL |
devl547@11250 | 23 #./configure $CONFIGURE_ARGS && |
devl547@11250 | 24 CXXFLAGS="$CXXFLAGS -DWITH_ZLIB=1" |
devl547@11250 | 25 UPX_LZMADIR=$src make all $MAKEFLAGS |
devl547@11250 | 26 cd src |
devl547@11250 | 27 mv upx.out upx |
devl547@11250 | 28 } |
devl547@11250 | 29 |
devl547@11250 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
devl547@11250 | 31 genpkg_rules() |
devl547@11250 | 32 { |
devl547@11250 | 33 mkdir -p $fs/usr/bin |
devl547@11250 | 34 cp -a $src/src/upx $fs/usr/bin/ |
devl547@11250 | 35 } |
devl547@11250 | 36 |