wok-6.x view upx/receipt @ rev 15000

Add some GPL2 licenses
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Aug 10 17:00:38 2013 +0000 (2013-08-10)
parents b2a632fc9587
children 07eb534c4186
line source
1 # SliTaz package receipt.
3 PACKAGE="upx"
4 VERSION="3.07"
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 }