system/lz4: Updated for version 1.8.1.2.

Signed-off-by: B. Watson <yalhcru@gmail.com>
This commit is contained in:
B. Watson 2018-01-14 20:29:20 -05:00 committed by Willy Sudiarto Raharjo
parent 1a83a40569
commit d949b8ab01
2 changed files with 8 additions and 15 deletions

View file

@ -6,12 +6,13 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
# 20180114 bkw: update for 1.8.1.2. had to add -j1 to the make command.
# 20170819 bkw: update for 1.8.0
# 20170302 bkw: use github long-format URL
# 20170122 bkw: update for 1.7.5
PRGNAM=lz4
VERSION=${VERSION:-1.8.0}
VERSION=${VERSION:-1.8.1.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -57,23 +58,15 @@ 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 \
make -j1 \
CFLAGS="$SLKCFLAGS" \
PREFIX=/usr \
LIBDIR=/usr/lib$LIBDIRSUFFIX \
MANDIR=/usr/man/man1 \
DESTDIR=$PKG \
BUILD_STATIC=no \
default install
# Don't ship the static lib.
rm -f $PKG/usr/lib$LIBDIRSUFFIX/*.a
# lz4 and lz4c aren't quite identical: lz4c has "legacy arguments".
# The man page doesn't document them, but lz4c --help does.
# Not sure if it's really useful to keep both binaries around, but
# until I know for sure, I'll keep them both.
### rm -f $PKG/usr/bin/lz4c $PKG/usr/man/man1/lz4c.1
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
@ -82,7 +75,7 @@ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; r
DOCDIR=$PKG/usr/doc/$PRGNAM-$VERSION
mkdir -p $DOCDIR
cp -a NEWS README* examples $DOCDIR
cp -a NEWS README* doc/* examples $DOCDIR
# the library is BSD licensed, but the programs are GPL.
cat programs/COPYING > $DOCDIR/LICENSE.programs.txt

View file

@ -1,8 +1,8 @@
PRGNAM="lz4"
VERSION="1.8.0"
VERSION="1.8.1.2"
HOMEPAGE="https://lz4.github.io/lz4/"
DOWNLOAD="https://github.com/lz4/lz4/archive/v1.8.0/lz4-1.8.0.tar.gz"
MD5SUM="6247bf0e955899969d1600ff34baed6b"
DOWNLOAD="https://github.com/lz4/lz4/archive/v1.8.1.2/lz4-1.8.1.2.tar.gz"
MD5SUM="343538e69ba752a386c669b1a28111e2"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""