wok-next annotate upx/receipt @ rev 20313
libav: typo
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Nov 10 21:37:38 2017 +0100 (2017-11-10) |
parents | 3a6b97ad0a64 |
children | fbd490ef13ef |
rev | line source |
---|---|
devl547@11250 | 1 # SliTaz package receipt. |
devl547@11250 | 2 |
devl547@11250 | 3 PACKAGE="upx" |
al@19663 | 4 VERSION="3.93" |
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" |
al@19663 | 9 WEB_SITE="https://upx.github.io/" |
al@19663 | 10 |
al@19663 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@19663 | 12 WGET_URL="https://github.com/upx/upx/archive/v$VERSION.tar.gz" |
al@19663 | 13 TARBALL2="upx-lzma-sdk-$VERSION.tar.gz" |
al@19663 | 14 WGET_URL2="https://github.com/upx/upx-lzma-sdk/archive/v$VERSION.tar.gz" |
slaxemulator@11253 | 15 |
devl547@11250 | 16 DEPENDS="ucl zlib" |
al@19663 | 17 BUILD_DEPENDS="ucl-dev zlib-dev perl" |
devl547@11250 | 18 |
devl547@11250 | 19 # Rules to configure and make the package. |
devl547@11250 | 20 compile_rules() |
devl547@11250 | 21 { |
al@19663 | 22 [ -s $SOURCES_REPOSITORY/$TARBALL2 ] || |
al@19663 | 23 wget -O $SOURCES_REPOSITORY/$TARBALL2 $WGET_URL2 |
al@19663 | 24 tar -xf $SOURCES_REPOSITORY/$TARBALL2 |
al@19663 | 25 rm -r $src/src/lzma-sdk |
al@19663 | 26 mv $src/$(basename $TARBALL2 .tar.gz) $src/src/lzma-sdk |
al@19663 | 27 |
al@19663 | 28 make CHECK_WHITESPACE=/bin/true all |
al@19663 | 29 |
al@19663 | 30 mkdir -p $install/usr/bin $install/usr/share/man/man1 |
al@19663 | 31 cp -a $src/src/upx.out $install/usr/bin/upx |
al@19663 | 32 cp -a $src/doc $install/usr/share |
al@19663 | 33 rm $install/usr/share/doc/Makefile |
al@19663 | 34 mv $install/usr/share/doc/upx.1 $install/usr/share/man/man1 |
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 { |
al@19783 | 40 copy upx |
devl547@11250 | 41 } |