aboutsummaryrefslogtreecommitdiff
path: root/libraries/libconfig/libconfig.SlackBuild
diff options
context:
space:
mode:
authorJason Graham <jgraha8@gmail.com>2018-05-07 09:42:42 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-05-07 09:42:42 +0700
commit1e3326ed42e7df07a7760bb905f687d287ba655f (patch)
treef31aec923b97aafa367acfb648feba7f41c7a474 /libraries/libconfig/libconfig.SlackBuild
parentadfa95c29bbc63204c4a1ea5f2c2f8e9ac23de73 (diff)
libraries/libconfig: Updated for version 1.7.2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/libconfig/libconfig.SlackBuild')
-rw-r--r--libraries/libconfig/libconfig.SlackBuild18
1 files changed, 12 insertions, 6 deletions
diff --git a/libraries/libconfig/libconfig.SlackBuild b/libraries/libconfig/libconfig.SlackBuild
index a271812947d2..f961e8e2dc03 100644
--- a/libraries/libconfig/libconfig.SlackBuild
+++ b/libraries/libconfig/libconfig.SlackBuild
@@ -3,7 +3,7 @@
# Slackware build script for libconfig
# Copyright 2017 Manuel Argüelles <manuel.arguelles@gmail.com>
-# Copyright 2017 Jason Graham <jgraha8@gmail.com>
+# Copyright 2017-2018 Jason Graham <jgraha8@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,7 +24,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=libconfig
-VERSION=${VERSION:-1.6}
+VERSION=${VERSION:-1.7.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -55,6 +55,7 @@ else
LIBDIRSUFFIX=""
fi
+DOC=${DOC:-no}
EXAMPLES=${EXAMPLES:-no}
set -e
@@ -72,7 +73,7 @@ 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 {} \;
-zcat $CWD/remove_scanner.patch.gz | patch -p1
+autoreconf -if
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -85,9 +86,10 @@ CXXFLAGS="$SLKCFLAGS" \
--infodir=/usr/info \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--disable-static \
+ --disable-examples \
--build=$ARCH-slackware-linux
-make -j1
+make
make install DESTDIR=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
@@ -97,11 +99,15 @@ rm -f $PKG/usr/info/dir
gzip -9 $PKG/usr/info/*.info*
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- INSTALL COPYING.LIB AUTHORS README ChangeLog \
+cp -a AUTHORS COPYING.LIB INSTALL ChangeLog LICENSE README TODO \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+if [ "${DOC}" = "yes" ]; then
+ make html pdf
+ cp -a doc/libconfig.{html,pdf} $PKG/usr/doc/$PRGNAM-$VERSION/
+fi
+
if [ "${EXAMPLES}" = "yes" ]; then
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/examples/{c,c++}
cp -a examples/c/*.{cfg,c} $PKG/usr/doc/$PRGNAM-$VERSION/examples/c/