diff options
author | Zhu Qun-Ying <zhu.qunying@gmail.com> | 2019-10-26 18:16:56 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-10-26 18:51:55 +0700 |
commit | e3501eb195a1d2735875e459773aa178b26fc656 (patch) | |
tree | 6fea7aa22a4000bf64a7ea15aec9975812462446 /system/zstd/zstd.SlackBuild | |
parent | 24dac98049c607caa2ee947c81cc41a2ee9957e6 (diff) | |
download | slackbuilds-e3501eb195a1d2735875e459773aa178b26fc656.tar.gz |
system/zstd: Updated for version 1.4.3.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/zstd/zstd.SlackBuild')
-rw-r--r-- | system/zstd/zstd.SlackBuild | 31 |
1 files changed, 25 insertions, 6 deletions
diff --git a/system/zstd/zstd.SlackBuild b/system/zstd/zstd.SlackBuild index b00f9d9ef9..ae1f722417 100644 --- a/system/zstd/zstd.SlackBuild +++ b/system/zstd/zstd.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for zstd -# Copyright 2016, Zhu Qun-Ying +# Copyright 2016-2019, Zhu Qun-Ying # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=zstd -VERSION=${VERSION:-1.3.8} +VERSION=${VERSION:-1.4.3} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -62,6 +62,7 @@ cd $TMP rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION +zcat $CWD/zstd.dont.link.pzstd.to.static.libzstd.a.diff.gz | patch -p1 --verbose || exit 1 chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -69,15 +70,33 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -make CFLAGS="$SLKCFLAGS" DESTDIR=$PKG PREFIX=/usr LIBDIR=/usr/lib$LIBDIRSUFFIX mandir=/usr/man/ install -make -C contrib/pzstd DESTDIR=$PKG PREFIX=/usr install +# Compile it: +make CFLAGS="$SLKCFLAGS" +make CFLAGS="$SLKCFLAGS" -C contrib/pzstd + +# Install it: +make \ + prefix=/usr \ + libdir=/usr/lib${LIBDIRSUFFIX} \ + mandir=/usr/man \ + DESTDIR=$PKG \ + install +install -Dm755 contrib/pzstd/pzstd $PKG/usr/bin/pzstd + +# Don't ship static library: +rm -f $PKG/usr/lib${LIBDIRSUFFIX}/*.a + +# zstdmt as the same as zstd, so just make a symlink: +( cd $PKG/usr/bin + ln -sf zstd zstdmt +) find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/pzstd -cp -a doc/* CHANGELOG $PKG/usr/doc/$PRGNAM-$VERSION -cp contrib/pzstd/README.md $PKG/usr/doc/$PRGNAM-$VERSION/pzstd +cp -a CONTRIBUTING* COPYING* LICENSE README* doc $PKG/usr/doc/$PRGNAM-$VERSION +cp contrib/pzstd/README.md $PKG/usr/doc/$PRGNAM-$VERSION/pzstd-README.md cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |