wok-next annotate upx391/receipt @ rev 21715

Up cookutils (1146)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jul 28 07:53:22 2020 +0000 (2020-07-28)
parents cd7906120828
children
rev   line source
al@20332 1 # SliTaz package receipt v2.
al@20332 2
al@20332 3 # Note. While the latest UPX works as expected, it can't decompress some
al@20332 4 # executables packed with UPX-1.25 and shipped with the package httpfs-fuse.
al@20332 5 # Error message produced with the UPX 3.92-3.94:
al@20332 6 # upx: <filename>: Exception: compressed data violation
al@20332 7
al@20332 8 PACKAGE="upx391"
al@20332 9 VERSION="3.91"
al@20332 10 CATEGORY="system-tools"
al@20332 11 SHORT_DESC="Ultimate Packer for eXecutables (free version using UCL compression)"
al@20332 12 MAINTAINER="devl547@gmail.com"
al@20332 13 LICENSE="GPL2"
al@20332 14 WEB_SITE="https://upx.github.io/"
al@20888 15 REPOLOGY="upx"
al@20332 16
al@20332 17 TARBALL="upx-$VERSION.tar.gz"
al@20332 18 WGET_URL="https://github.com/upx/upx/archive/v$VERSION.tar.gz"
al@21017 19 WGET_URL2="$SF_MIRROR/sevenzip/lzma465.tar.bz2"
al@20332 20
al@20332 21 BUILD_DEPENDS="ucl-dev zlib-dev perl"
al@20332 22
al@20332 23 compile_rules() {
al@20332 24 TARBALL2="$(basename $WGET_URL2)"
al@20513 25 SRC2="$SRC/$TARBALL2"
al@20332 26 [ -s "$SRC2" ] || wget -O "$SRC2" "$WGET_URL2"
al@20332 27 tar -xf "$SRC2"
al@20332 28
al@20332 29 CXXFLAGS="$CXXFLAGS -DWITH_ZLIB=1 -Wno-error=misleading-indentation"
al@20332 30 UPX_LZMADIR=$src make all || return 1
al@20332 31
al@20332 32 mkdir -p $install/usr/bin $install/usr/share/man/man1
al@20332 33 cp -a $src/src/upx.out $install/usr/bin/upx
al@20332 34 cp -a $src/doc $install/usr/share
al@20332 35 rm $install/usr/share/doc/Makefile
al@20332 36 mv $install/usr/share/doc/upx.1 $install/usr/share/man/man1
al@20332 37 }
al@20332 38
al@20332 39 genpkg_rules() {
al@20332 40 copy upx
al@20332 41 DEPENDS="ucl zlib"
al@20332 42 }