wok-6.x view upx/receipt @ rev 22460
updated R (3.1.1 -> 3.6.2)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Dec 27 14:20:41 2019 +0100 (2019-12-27) |
parents | 623f02d7e6c8 |
children | bf00db9e594d |
line source
1 # SliTaz package receipt.
3 PACKAGE="upx"
4 VERSION="3.95"
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="https://upx.github.io/"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="https://github.com/upx/upx/archive/v$VERSION.tar.gz"
12 PATCH="https://github.com/upx/upx-lzma-sdk/archive/v$VERSION.tar.gz"
13 EXTRA_SOURCE_FILES="lzma-$TARBALL"
15 DEPENDS="ucl zlib"
16 BUILD_DEPENDS="ucl-dev zlib-dev perl"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 [ -s $SOURCES_REPOSITORY/lzma-$TARBALL ] ||
22 wget -O $SOURCES_REPOSITORY/lzma-$TARBALL $PATCH
23 tar -xf $SOURCES_REPOSITORY/lzma-$TARBALL
24 sed -i 's|c_len >= u_len)|c_len < u_len) return true; else|' \
25 $src/src/packer.cpp
26 rm -r $src/src/lzma-sdk
27 mv $src/upx-lzma-sdk-$VERSION $src/src/lzma-sdk
28 make CHECK_WHITESPACE=/bin/true all
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/bin $install/usr/share/doc $install/usr/share/man
35 cp -a $src/src/upx.out $fs/usr/bin/upx
36 cp $src/doc/*.txt $install/usr/share/doc
37 cp $src/doc/*.doc $install/usr/share/doc
38 cp $src/doc/*.html $install/usr/share/doc
39 cp $src/LICENSE $install/usr/share/doc
40 cp $src/COPYING $install/usr/share/doc
41 cp $src/README* $install/usr/share/doc
42 cp $src/THANKS $install/usr/share/doc
43 cp $src/NEWS $install/usr/share/doc
44 cp $src/BUGS $install/usr/share/doc
45 cp $src/doc/*.1 $install/usr/share/man
46 }