system/upx: Updated for version 4.2.2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
8f55f62c0d
commit
179c58cad3
|
@ -1,11 +0,0 @@
|
|||
--- a/src/stub/scripts/check_whitespace.sh 2018-06-19 10:37:43.906967996 +0200
|
||||
+++ b/src/stub/scripts/check_whitespace.sh 2018-06-19 10:32:18.002066908 +0200
|
||||
@@ -15,6 +15,8 @@
|
||||
-type f -iname '*.exe' -prune -o \
|
||||
-type f -iname '*.pdf' -prune -o \
|
||||
-type f -iname '*.swp' -prune -o \
|
||||
+ -type f -iname '*.o' -prune -o \
|
||||
+ -type f -iname '*.out' -prune -o \
|
||||
-type f -print0 | \
|
||||
LC_ALL=C sort -z | xargs -0r perl -n -e '
|
||||
#print("$ARGV\n");
|
|
@ -26,7 +26,7 @@
|
|||
cd $(dirname $0) ; CWD=$(pwd)
|
||||
|
||||
PRGNAM=upx
|
||||
VERSION=${VERSION:-3.94}
|
||||
VERSION=${VERSION:-4.2.2}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
PKGTYPE=${PKGTYPE:-tgz}
|
||||
|
@ -80,22 +80,25 @@ find -L . \
|
|||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
patch -p1 < "$CWD/upx-0001-fix-check_whitespace.patch"
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake \
|
||||
-G "Unix Makefiles" \
|
||||
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
||||
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_INSTALL_LIBDIR=lib${LIBDIRSUFFIX} \
|
||||
-DCMAKE_INSTALL_DOCDIR=doc/$PRGNAM-$VERSION \
|
||||
-DCMAKE_INSTALL_MANDIR=man \
|
||||
-DCMAKE_BUILD_TYPE=Release ..
|
||||
make
|
||||
make install/strip DESTDIR=$PKG
|
||||
cd ..
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS_WERROR="" \
|
||||
make all
|
||||
install -D src/upx.out $PKG/usr/bin/upx
|
||||
|
||||
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
||||
install -D -m 644 doc/upx.1 $PKG/usr/man/man1/upx.1
|
||||
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a BUGS COPYING LICENSE NEWS PROJECTS README* THANKS \
|
||||
cp -a \
|
||||
doc/*.txt doc/upx.pod \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="upx"
|
||||
VERSION="3.94"
|
||||
VERSION="4.2.2"
|
||||
HOMEPAGE="https://upx.github.io/"
|
||||
DOWNLOAD="https://github.com/upx/upx/releases/download/v3.94/upx-3.94-src.tar.xz"
|
||||
MD5SUM="19e898edc41bde3f21e997d237156731"
|
||||
DOWNLOAD="https://github.com/upx/upx/releases/download/v4.2.2/upx-4.2.2-src.tar.xz"
|
||||
MD5SUM="97ea082bc7240b8083316293e2be0e29"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES="ucl"
|
||||
|
|
Loading…
Reference in New Issue