diff options
Diffstat (limited to 'system/zstd/zstd.SlackBuild')
-rw-r--r-- | system/zstd/zstd.SlackBuild | 25 |
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 |