summaryrefslogtreecommitdiff
path: root/libraries/http-parser/http-parser.SlackBuild
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja@gmail.com>2016-07-26 12:00:58 -0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-07-30 08:28:40 +0700
commita4c68a64988f5191fc0224410bc67215d8c4b82f (patch)
tree3605a6fa2f1fc8cfc686b2259d25692f7bcce19a /libraries/http-parser/http-parser.SlackBuild
parent29e7b0e5f18951eaa5860a730b7f634666ef4d3c (diff)
downloadslackbuilds-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/http-parser.SlackBuild')
-rw-r--r--libraries/http-parser/http-parser.SlackBuild23
1 files changed, 10 insertions, 13 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