summaryrefslogtreecommitdiff
path: root/system/lz4/lz4.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2017-01-22 17:08:57 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-01-24 07:23:29 +0700
commit3ae8d27d60b77eb31f33e3ae888ca6677b14b04b (patch)
tree30f5cd222164bc4d0f0fa95cfdcaf88aa8e59c29 /system/lz4/lz4.SlackBuild
parent0a8af29501382ba0a0ec8d563aaadefb5a5a5b97 (diff)
downloadslackbuilds-3ae8d27d60b77eb31f33e3ae888ca6677b14b04b.tar.gz
system/lz4: Updated for version 1.7.5.
Diffstat (limited to 'system/lz4/lz4.SlackBuild')
-rw-r--r--system/lz4/lz4.SlackBuild14
1 files changed, 11 insertions, 3 deletions
diff --git a/system/lz4/lz4.SlackBuild b/system/lz4/lz4.SlackBuild
index e311717151..184b0ee71b 100644
--- a/system/lz4/lz4.SlackBuild
+++ b/system/lz4/lz4.SlackBuild
@@ -6,8 +6,10 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20170122 bkw: update for 1.7.5
+
PRGNAM=lz4
-VERSION=${VERSION:-r131}
+VERSION=${VERSION:-1.7.5}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -44,7 +46,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/v$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -59,11 +61,17 @@ make \
LIBDIR=/usr/lib$LIBDIRSUFFIX \
MANDIR=/usr/man/man1 \
DESTDIR=$PKG \
- lib lz4programs install
+ default install
# Don't ship the static lib.
rm -f $PKG/usr/lib$LIBDIRSUFFIX/*.a
+# lz4 and lz4c aren't quite identical: lz4c has "legacy arguments".
+# The man page doesn't document them, but lz4c --help does.
+# Not sure if it's really useful to keep both binaries around, but
+# until I know for sure, I'll keep them both.
+### rm -f $PKG/usr/bin/lz4c $PKG/usr/man/man1/lz4c.1
+
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