wok-next view upx/receipt @ rev 15672

Up linux (3.2.53) again...
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Dec 18 15:13:22 2013 +0000 (2013-12-18)
parents 380ffe05937a
children a43fcf1be6e4
line source
1 # SliTaz package receipt.
3 PACKAGE="upx"
4 VERSION="3.09"
5 CATEGORY="system-tools"
6 SHORT_DESC="Ultimate Packer for eXecutables (free version using UCL compression)"
7 MAINTAINER="devl547@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="http://upx.sourceforge.net/"
10 TARBALL="$PACKAGE-$VERSION-src.tar.bz2"
11 WGET_URL="http://upx.sourceforge.net/download/$TARBALL"
12 PATCH="http://downloads.sourceforge.net/sevenzip/lzma465.tar.bz2"
13 EXTRA_SOURCE_FILES="$PATCH"
15 DEPENDS="ucl zlib"
16 BUILD_DEPENDS="ucl-dev zlib-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 [ -s $SOURCES_REPOSITORY/$(basename $PATCH) ] ||
22 wget -P $SOURCES_REPOSITORY $PATCH
23 tar -xjpf $SOURCES_REPOSITORY/$(basename $PATCH)
24 CXXFLAGS="$CXXFLAGS -DWITH_ZLIB=1"
25 cd $src
26 UPX_LZMADIR=$src make all
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/bin
33 cp -a $src/src/upx.out $fs/usr/bin/upx
34 }