wok annotate upx/receipt @ rev 22177
corrected font-manager
author | Hans-G?nter Theisgen |
---|---|
date | Sat Nov 09 11:33:35 2019 +0100 (2019-11-09) |
parents | 623f02d7e6c8 |
children | bf00db9e594d |
rev | line source |
---|---|
devl547@11250 | 1 # SliTaz package receipt. |
devl547@11250 | 2 |
devl547@11250 | 3 PACKAGE="upx" |
pascal@20456 | 4 VERSION="3.95" |
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 |
devl547@11250 | 18 # Rules to configure and make the package. |
devl547@11250 | 19 compile_rules() |
devl547@11250 | 20 { |
pascal@20456 | 21 [ -s $SOURCES_REPOSITORY/lzma-$TARBALL ] || |
pascal@20456 | 22 wget -O $SOURCES_REPOSITORY/lzma-$TARBALL $PATCH |
pascal@20456 | 23 tar -xf $SOURCES_REPOSITORY/lzma-$TARBALL |
pascal@20481 | 24 sed -i 's|c_len >= u_len)|c_len < u_len) return true; else|' \ |
pascal@20481 | 25 $src/src/packer.cpp |
pascal@20456 | 26 rm -r $src/src/lzma-sdk |
pascal@20456 | 27 mv $src/upx-lzma-sdk-$VERSION $src/src/lzma-sdk |
pascal@20456 | 28 make CHECK_WHITESPACE=/bin/true all |
devl547@11250 | 29 } |
devl547@11250 | 30 |
devl547@11250 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
devl547@11250 | 32 genpkg_rules() |
devl547@11250 | 33 { |
pascal@19554 | 34 mkdir -p $fs/usr/bin $install/usr/share/doc $install/usr/share/man |
slaxemulator@11253 | 35 cp -a $src/src/upx.out $fs/usr/bin/upx |
pascal@19554 | 36 cp $src/doc/*.txt $install/usr/share/doc |
pascal@19554 | 37 cp $src/doc/*.doc $install/usr/share/doc |
pascal@19554 | 38 cp $src/doc/*.html $install/usr/share/doc |
pascal@19555 | 39 cp $src/LICENSE $install/usr/share/doc |
pascal@19555 | 40 cp $src/COPYING $install/usr/share/doc |
pascal@19555 | 41 cp $src/README* $install/usr/share/doc |
pascal@19555 | 42 cp $src/THANKS $install/usr/share/doc |
pascal@19555 | 43 cp $src/NEWS $install/usr/share/doc |
pascal@19555 | 44 cp $src/BUGS $install/usr/share/doc |
pascal@19554 | 45 cp $src/doc/*.1 $install/usr/share/man |
devl547@11250 | 46 } |