summaryrefslogtreecommitdiff
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
parent0a8af29501382ba0a0ec8d563aaadefb5a5a5b97 (diff)
downloadslackbuilds-3ae8d27d60b77eb31f33e3ae888ca6677b14b04b.tar.gz
system/lz4: Updated for version 1.7.5.
-rw-r--r--system/lz4/lz4.SlackBuild14
-rw-r--r--system/lz4/lz4.info6
2 files changed, 14 insertions, 6 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
diff --git a/system/lz4/lz4.info b/system/lz4/lz4.info
index 4bf9d06823..c37ee0fc0b 100644
--- a/system/lz4/lz4.info
+++ b/system/lz4/lz4.info
@@ -1,8 +1,8 @@
PRGNAM="lz4"
-VERSION="r131"
+VERSION="1.7.5"
HOMEPAGE="https://lz4.github.io/lz4/"
-DOWNLOAD="https://github.com/Cyan4973/lz4/archive/r131.tar.gz"
-MD5SUM="42b09fab42331da9d3fb33bd5c560de9"
+DOWNLOAD="https://github.com/lz4/lz4/archive/v1.7.5.tar.gz"
+MD5SUM="c9610c5ce97eb431dddddf0073d919b9"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""