wok view upx/receipt @ rev 25705
fusecloop/extract_compressed_fs: can convert to v0.68 or v1.0
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jun 22 12:48:49 2024 +0000 (4 months ago) |
parents | 6b6d14c9f7e9 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="upx"
4 VERSION="3.96"
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 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
22 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 [ -s $SOURCES_REPOSITORY/lzma-$TARBALL ] ||
29 wget -O $SOURCES_REPOSITORY/lzma-$TARBALL $PATCH
30 tar -xf $SOURCES_REPOSITORY/lzma-$TARBALL
31 sed -i 's|c_len >= u_len)|c_len < u_len) return true; else|' \
32 $src/src/packer.cpp
33 rm -r $src/src/lzma-sdk
34 mv $src/upx-lzma-sdk-$VERSION $src/src/lzma-sdk
35 make CHECK_WHITESPACE=/bin/true all
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr/bin $install/usr/share/doc $install/usr/share/man
42 cp -a $src/src/upx.out $fs/usr/bin/upx
43 cp $src/doc/*.txt $install/usr/share/doc
44 cp $src/doc/*.doc $install/usr/share/doc
45 cp $src/doc/*.html $install/usr/share/doc
46 cp $src/LICENSE $install/usr/share/doc
47 cp $src/COPYING $install/usr/share/doc
48 cp $src/README* $install/usr/share/doc
49 cp $src/THANKS $install/usr/share/doc
50 cp $src/NEWS $install/usr/share/doc
51 cp $src/BUGS $install/usr/share/doc
52 cp $src/doc/*.1 $install/usr/share/man
53 }