wok annotate upx/receipt @ rev 23587
updated python-xmlutils (1.1 -> 1.4)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Apr 07 14:35:26 2020 +0100 (2020-04-07) |
parents | 12f4a776eaa7 |
children | 6b6d14c9f7e9 |
rev | line source |
---|---|
devl547@11250 | 1 # SliTaz package receipt. |
devl547@11250 | 2 |
devl547@11250 | 3 PACKAGE="upx" |
pascal@22978 | 4 VERSION="3.96" |
devl547@11250 | 5 CATEGORY="system-tools" |
devl547@11250 | 6 SHORT_DESC="Ultimate Packer for eXecutables (free version using UCL compression)" |
devl547@11250 | 7 MAINTAINER="devl547@gmail.com" |
pascal@15000 | 8 LICENSE="GPL2" |
pascal@20456 | 9 WEB_SITE="https://upx.github.io/" |
pascal@20456 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@20456 | 11 WGET_URL="https://github.com/upx/upx/archive/v$VERSION.tar.gz" |
pascal@20456 | 12 PATCH="https://github.com/upx/upx-lzma-sdk/archive/v$VERSION.tar.gz" |
pascal@20456 | 13 EXTRA_SOURCE_FILES="lzma-$TARBALL" |
slaxemulator@11253 | 14 |
devl547@11250 | 15 DEPENDS="ucl zlib" |
pascal@20456 | 16 BUILD_DEPENDS="ucl-dev zlib-dev perl" |
devl547@11250 | 17 |
pascal@22978 | 18 current_version() |
pascal@22978 | 19 { |
pascal@22978 | 20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@22978 | 21 sed '/archive.*tar/!d;s|.*archive/v\(.*\).tar.*|\1|;q' |
pascal@22978 | 22 } |
pascal@22978 | 23 |
devl547@11250 | 24 # Rules to configure and make the package. |
devl547@11250 | 25 compile_rules() |
devl547@11250 | 26 { |
pascal@20456 | 27 [ -s $SOURCES_REPOSITORY/lzma-$TARBALL ] || |
pascal@20456 | 28 wget -O $SOURCES_REPOSITORY/lzma-$TARBALL $PATCH |
pascal@20456 | 29 tar -xf $SOURCES_REPOSITORY/lzma-$TARBALL |
pascal@20481 | 30 sed -i 's|c_len >= u_len)|c_len < u_len) return true; else|' \ |
pascal@20481 | 31 $src/src/packer.cpp |
pascal@20456 | 32 rm -r $src/src/lzma-sdk |
pascal@20456 | 33 mv $src/upx-lzma-sdk-$VERSION $src/src/lzma-sdk |
pascal@20456 | 34 make CHECK_WHITESPACE=/bin/true all |
devl547@11250 | 35 } |
devl547@11250 | 36 |
devl547@11250 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
devl547@11250 | 38 genpkg_rules() |
devl547@11250 | 39 { |
pascal@19554 | 40 mkdir -p $fs/usr/bin $install/usr/share/doc $install/usr/share/man |
slaxemulator@11253 | 41 cp -a $src/src/upx.out $fs/usr/bin/upx |
pascal@19554 | 42 cp $src/doc/*.txt $install/usr/share/doc |
pascal@19554 | 43 cp $src/doc/*.doc $install/usr/share/doc |
pascal@19554 | 44 cp $src/doc/*.html $install/usr/share/doc |
pascal@19555 | 45 cp $src/LICENSE $install/usr/share/doc |
pascal@19555 | 46 cp $src/COPYING $install/usr/share/doc |
pascal@19555 | 47 cp $src/README* $install/usr/share/doc |
pascal@19555 | 48 cp $src/THANKS $install/usr/share/doc |
pascal@19555 | 49 cp $src/NEWS $install/usr/share/doc |
pascal@19555 | 50 cp $src/BUGS $install/usr/share/doc |
pascal@19554 | 51 cp $src/doc/*.1 $install/usr/share/man |
devl547@11250 | 52 } |