aboutsummaryrefslogtreecommitdiff
path: root/system/lz4/lz4.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/lz4/lz4.SlackBuild')
-rw-r--r--system/lz4/lz4.SlackBuild14
1 files changed, 6 insertions, 8 deletions
diff --git a/system/lz4/lz4.SlackBuild b/system/lz4/lz4.SlackBuild
index d965cfcd0dfb..f16498362359 100644
--- a/system/lz4/lz4.SlackBuild
+++ b/system/lz4/lz4.SlackBuild
@@ -6,9 +6,10 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20191127 bkw: update for 1.9.2
# 20180911 bkw: update for 1.8.3
# 20180611 bkw: update for 1.8.2. don't try to use the updated script
-# to builds older versions, the man pages will end up
+# to build older versions, the man pages will end up
# in the wrong place due to upstream changing how they
# interpret MANDIR
# 20180114 bkw: update for 1.8.1.2. had to add -j1 to the make command.
@@ -17,7 +18,7 @@
# 20170122 bkw: update for 1.7.5
PRGNAM=lz4
-VERSION=${VERSION:-1.8.3}
+VERSION=${VERSION:-1.9.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -54,14 +55,11 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz --exclude visual
cd $PRGNAM-$VERSION
chown -R root:root .
-find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
# -j1 was necessary in 1.8.1.2. Not sure it's still needed in 1.8.2, but
# lz4 is small & builds pretty fast even with -j1, so I'll leave it for now.