summaryrefslogtreecommitdiff
path: root/libraries/http-parser
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/http-parser')
-rw-r--r--libraries/http-parser/http-parser.SlackBuild23
-rw-r--r--libraries/http-parser/http-parser.info6
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=""