wok-next annotate upx391/receipt @ rev 20513

A lot of tiny edits; remove wget and pkg-build from $BUILD_DEPENDS and from *-dev packages $DEPENDS.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Mar 21 15:58:17 2018 +0200 (2018-03-21)
parents fbd490ef13ef
children cd7906120828
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@20332 15
al@20332 16 TARBALL="upx-$VERSION.tar.gz"
al@20332 17 WGET_URL="https://github.com/upx/upx/archive/v$VERSION.tar.gz"
al@20332 18 WGET_URL2="http://downloads.sourceforge.net/sevenzip/lzma465.tar.bz2"
al@20332 19
al@20332 20 BUILD_DEPENDS="ucl-dev zlib-dev perl"
al@20332 21
al@20332 22 compile_rules() {
al@20332 23 TARBALL2="$(basename $WGET_URL2)"
al@20513 24 SRC2="$SRC/$TARBALL2"
al@20332 25 [ -s "$SRC2" ] || wget -O "$SRC2" "$WGET_URL2"
al@20332 26 tar -xf "$SRC2"
al@20332 27
al@20332 28 CXXFLAGS="$CXXFLAGS -DWITH_ZLIB=1 -Wno-error=misleading-indentation"
al@20332 29 UPX_LZMADIR=$src make all || return 1
al@20332 30
al@20332 31 mkdir -p $install/usr/bin $install/usr/share/man/man1
al@20332 32 cp -a $src/src/upx.out $install/usr/bin/upx
al@20332 33 cp -a $src/doc $install/usr/share
al@20332 34 rm $install/usr/share/doc/Makefile
al@20332 35 mv $install/usr/share/doc/upx.1 $install/usr/share/man/man1
al@20332 36 }
al@20332 37
al@20332 38 genpkg_rules() {
al@20332 39 copy upx
al@20332 40 DEPENDS="ucl zlib"
al@20332 41 }