diff options
author | Larry Hajali <larryhaja@gmail.com> | 2016-07-26 12:00:58 -0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-07-30 08:28:40 +0700 |
commit | a4c68a64988f5191fc0224410bc67215d8c4b82f (patch) | |
tree | 3605a6fa2f1fc8cfc686b2259d25692f7bcce19a /libraries/http-parser | |
parent | 29e7b0e5f18951eaa5860a730b7f634666ef4d3c (diff) | |
download | slackbuilds-a4c68a64988f5191fc0224410bc67215d8c4b82f.tar.gz |
libraries/http-parser: Updated for version 2.7.1
Signed-off-by: Larry Hajali <larryhaja[at]gmail[dot]com>
Diffstat (limited to 'libraries/http-parser')
-rw-r--r-- | libraries/http-parser/http-parser.SlackBuild | 23 | ||||
-rw-r--r-- | libraries/http-parser/http-parser.info | 6 |
2 files changed, 13 insertions, 16 deletions
diff --git a/libraries/http-parser/http-parser.SlackBuild b/libraries/http-parser/http-parser.SlackBuild index e456896636..c20ae255da 100644 --- a/libraries/http-parser/http-parser.SlackBuild +++ b/libraries/http-parser/http-parser.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for http-parser -# Copyright 2015 Larry Hajali <larryhaja[at]gmail[dot]com> +# Copyright 2015-2016 Larry Hajali <larryhaja[at]gmail[dot]com> # 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=http-parser -VERSION=${VERSION:-2.6.0} +VERSION=${VERSION:-2.7.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -60,7 +60,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz 2>/dev/null || tar xvf $CWD/v${VERSION}.tar.gz +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ @@ -69,20 +69,17 @@ 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 {} \; -CFLAGS="$SLKCFLAGS" make library - -# Manually install library. -mkdir -p $PKG/usr/lib${LIBDIRSUFFIX} $PKG/usr/include -install -m 0755 lib${PRGNAM/-/_}.so.$VERSION $PKG/usr/lib${LIBDIRSUFFIX} -install -m 0644 ${PRGNAM/-/_}.h $PKG/usr/include -ln -s /usr/lib${LIBDIRSUFFIX}/lib${PRGNAM/-/_}.so.$VERSION \ - $PKG/usr/lib${LIBDIRSUFFIX}/lib${PRGNAM/-/_}.so.${VERSION%%\.*} -ln -s /usr/lib${LIBDIRSUFFIX}/lib${PRGNAM/-/_}.so.$VERSION \ - $PKG/usr/lib${LIBDIRSUFFIX}/lib${PRGNAM/-/_}.so +CFLAGS="$SLKCFLAGS" \ +make install \ + PREFIX=$PKG/usr \ + LIBDIR=$PKG/usr/lib${LIBDIRSUFFIX} 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 +# Fix permissions. +find $PKG/usr/include -type f -exec chmod 0644 '{}' \; + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a AUTHORS LICENSE-MIT README.md $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild diff --git a/libraries/http-parser/http-parser.info b/libraries/http-parser/http-parser.info index c1698259fb..1e02ad1d1d 100644 --- a/libraries/http-parser/http-parser.info +++ b/libraries/http-parser/http-parser.info @@ -1,8 +1,8 @@ PRGNAM="http-parser" -VERSION="2.6.0" +VERSION="2.7.1" HOMEPAGE="https://github.com/joyent/http-parser" -DOWNLOAD="https://github.com/joyent/http-parser/archive/v2.6.0.tar.gz" -MD5SUM="63033f3e657ee46c5fef6e53e4d9886b" +DOWNLOAD="https://github.com/joyent/http-parser/archive/v2.7.1/http-parser-2.7.1.tar.gz" +MD5SUM="31c6fefb6208b16d19b3f990e71cb04a" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |