aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 e3117171518f3..184b0ee71b4ff 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 4bf9d06823fc9..c37ee0fc0b34b 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=""