wok-next view upx391/receipt @ rev 20674
Up putty (0.70)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat May 12 05:17:48 2018 +0300 (2018-05-12) |
parents | fbd490ef13ef |
children | cd7906120828 |
line source
1 # SliTaz package receipt v2.
3 # Note. While the latest UPX works as expected, it can't decompress some
4 # executables packed with UPX-1.25 and shipped with the package httpfs-fuse.
5 # Error message produced with the UPX 3.92-3.94:
6 # upx: <filename>: Exception: compressed data violation
8 PACKAGE="upx391"
9 VERSION="3.91"
10 CATEGORY="system-tools"
11 SHORT_DESC="Ultimate Packer for eXecutables (free version using UCL compression)"
12 MAINTAINER="devl547@gmail.com"
13 LICENSE="GPL2"
14 WEB_SITE="https://upx.github.io/"
16 TARBALL="upx-$VERSION.tar.gz"
17 WGET_URL="https://github.com/upx/upx/archive/v$VERSION.tar.gz"
18 WGET_URL2="http://downloads.sourceforge.net/sevenzip/lzma465.tar.bz2"
20 BUILD_DEPENDS="ucl-dev zlib-dev perl"
22 compile_rules() {
23 TARBALL2="$(basename $WGET_URL2)"
24 SRC2="$SRC/$TARBALL2"
25 [ -s "$SRC2" ] || wget -O "$SRC2" "$WGET_URL2"
26 tar -xf "$SRC2"
28 CXXFLAGS="$CXXFLAGS -DWITH_ZLIB=1 -Wno-error=misleading-indentation"
29 UPX_LZMADIR=$src make all || return 1
31 mkdir -p $install/usr/bin $install/usr/share/man/man1
32 cp -a $src/src/upx.out $install/usr/bin/upx
33 cp -a $src/doc $install/usr/share
34 rm $install/usr/share/doc/Makefile
35 mv $install/usr/share/doc/upx.1 $install/usr/share/man/man1
36 }
38 genpkg_rules() {
39 copy upx
40 DEPENDS="ucl zlib"
41 }