summaryrefslogtreecommitdiff
path: root/system/zstd/zstd.SlackBuild
diff options
context:
space:
mode:
authorZhu Qun-Ying <zhu.qunying@gmail.com>2016-11-08 22:41:21 +0000
committerDavid Spencer <idlemoor@slackbuilds.org>2016-11-11 20:36:22 +0000
commitec76c6ca038f3a0c025041847979527ff90c1af0 (patch)
tree8c30bd9fa0604bd86239286c7b5f40019cd6e36e /system/zstd/zstd.SlackBuild
parent6f55fbc72b9e6127fcd4918584ecf396c10a0b3f (diff)
downloadslackbuilds-ec76c6ca038f3a0c025041847979527ff90c1af0.tar.gz
system/zstd: Updated for version 1.1.1.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'system/zstd/zstd.SlackBuild')
-rw-r--r--system/zstd/zstd.SlackBuild25
1 files changed, 12 insertions, 13 deletions
diff --git a/system/zstd/zstd.SlackBuild b/system/zstd/zstd.SlackBuild
index 390d5bfae7..aeb4c020d3 100644
--- a/system/zstd/zstd.SlackBuild
+++ b/system/zstd/zstd.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=zstd
-VERSION=${VERSION:-1.1.0}
+VERSION=${VERSION:-1.1.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -69,21 +69,20 @@ 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 -C lib CFLAGS="$SLKCFLAGS"
-make CFLAGS="$SLKCFLAGS"
+make CFLAGS="$SLKCFLAGS" DESTDIR=$PKG PREFIX=/usr LIBDIR=/usr/lib$LIBDIRSUFFIX MANDIR=/usr/man/man1 install
+make -C contrib/pzstd DESTDIR=$PKG PREFIX=/usr install
-mkdir -p $PKG/usr/bin $PKG/usr/lib$LIBDIRSUFFIX $PKG/usr/include \
- $PKG/usr/lib$LIBDIRSUFFIX/pkgconfig
+cd $PKG/usr/man/man1
+ rm unzstd.1 zstdcat.1
+ gzip -9 zstd.1
+ ln -s zstd.1.gz unzstd.1.gz
+ ln -s zstd.1.gz zstdcat.1.gz
+cd -
-cp zstd $PKG/usr/bin
-cp lib/zstd.h $PKG/usr/include
-cp -d lib/libzstd.so* $PKG/usr/lib$LIBDIRSUFFIX
-sed -e 's/@PREFIX@/\/usr/' -e "s/@LIBDIR@/\/usr\/lib$LIBDIRSUFFIX/" \
- -e "s/@VERSION@/$VERSION/" -e '/@INCLUDEDIR@/d' lib/libzstd.pc.in \
- > $PKG/usr/lib$LIBDIRSUFFIX/pkgconfig/libzstd.pc
-
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/pzstd
cp -a README.md NEWS $PKG/usr/doc/$PRGNAM-$VERSION
+cp contrib/pzstd/README.md $PKG/usr/doc/$PRGNAM-$VERSION/pzstd
+
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install