wok view upx/receipt @ rev 19554
upx: add doc links
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Dec 11 15:06:50 2016 +0100 (2016-12-11) |
parents | a43fcf1be6e4 |
children | 8ca08b663525 |
line source
1 # SliTaz package receipt.
3 PACKAGE="upx"
4 VERSION="3.91"
5 CATEGORY="system-tools"
6 SHORT_DESC="Ultimate Packer for eXecutables (free version using UCL compression)"
7 MAINTAINER="devl547@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="http://upx.sourceforge.net/"
10 TARBALL="$PACKAGE-$VERSION-src.tar.bz2"
11 WGET_URL="http://upx.sourceforge.net/download/$TARBALL"
12 PATCH="http://downloads.sourceforge.net/sevenzip/lzma465.tar.bz2"
13 EXTRA_SOURCE_FILES="$PATCH"
15 DEPENDS="ucl zlib"
16 BUILD_DEPENDS="ucl-dev zlib-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 [ -s $SOURCES_REPOSITORY/$(basename $PATCH) ] ||
22 wget -P $SOURCES_REPOSITORY $PATCH
23 tar -xjpf $SOURCES_REPOSITORY/$(basename $PATCH)
24 CXXFLAGS="$CXXFLAGS -DWITH_ZLIB=1"
25 cd $src
26 UPX_LZMADIR=$src make all
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/bin $install/usr/share/doc $install/usr/share/man
33 cp -a $src/src/upx.out $fs/usr/bin/upx
34 cp $src/doc/*.txt $install/usr/share/doc
35 cp $src/doc/*.doc $install/usr/share/doc
36 cp $src/doc/*.html $install/usr/share/doc
37 cp $src/doc/*.1 $install/usr/share/man
38 }