system/zstd: Updated for version 1.1.1.

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
Zhu Qun-Ying 2016-11-08 22:41:21 +00:00 committed by David Spencer
parent 6f55fbc72b
commit ec76c6ca03
2 changed files with 15 additions and 16 deletions

View file

@ -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

View file

@ -1,8 +1,8 @@
PRGNAM="zstd"
VERSION="1.1.0"
VERSION="1.1.1"
HOMEPAGE="http://facebook.github.io/zstd/"
DOWNLOAD="https://github.com/facebook/zstd/archive/v1.1.0/zstd-1.1.0.tar.gz"
MD5SUM="64fc5efcd1ca60a3cd74a3ccaf25006e"
DOWNLOAD="https://github.com/facebook/zstd/archive/v1.1.1/zstd-1.1.1.tar.gz"
MD5SUM="487cfdc41d7afebb565c171bf3df27a2"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""