summaryrefslogtreecommitdiff
path: root/source/l/zstd/zstd.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source/l/zstd/zstd.SlackBuild')
-rwxr-xr-xsource/l/zstd/zstd.SlackBuild10
1 files changed, 9 insertions, 1 deletions
diff --git a/source/l/zstd/zstd.SlackBuild b/source/l/zstd/zstd.SlackBuild
index 5ae87b0c..ccc4c9b5 100755
--- a/source/l/zstd/zstd.SlackBuild
+++ b/source/l/zstd/zstd.SlackBuild
@@ -24,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=zstd
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
-BUILD=${BUILD:-3}
+BUILD=${BUILD:-4}
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
@@ -112,6 +112,14 @@ install -Dm755 contrib/pzstd/pzstd $PKG/usr/bin/pzstd || exit 1
# Don't ship static library:
rm -f $PKG/usr/lib${LIBDIRSUFFIX}/*.a
+# It might be advisable to have the libraries in /lib${LIBDIRSUFFIX}:
+mkdir -p $PKG/lib${LIBDIRSUFFIX}
+mv $PKG/usr/lib${LIBDIRSUFFIX}/libzstd.so.* $PKG/lib${LIBDIRSUFFIX}
+( cd $PKG/usr/lib${LIBDIRSUFFIX}
+ rm -f libzstd.so
+ ln -sf ../../lib${LIBDIRSUFFIX}/libzstd.so.? libzstd.so
+)
+
# zstdmt as the same as zstd, so just make a symlink:
( cd $PKG/usr/bin
ln -sf zstd zstdmt