summaryrefslogtreecommitdiff
path: root/libraries/libconfig
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
parentadfa95c29bbc63204c4a1ea5f2c2f8e9ac23de73 (diff)
downloadslackbuilds-1e3326ed42e7df07a7760bb905f687d287ba655f.tar.gz
libraries/libconfig: Updated for version 1.7.2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/libconfig')
-rw-r--r--libraries/libconfig/README5
-rw-r--r--libraries/libconfig/libconfig.SlackBuild18
-rw-r--r--libraries/libconfig/libconfig.info6
3 files changed, 20 insertions, 9 deletions
diff --git a/libraries/libconfig/README b/libraries/libconfig/README
index 950a1623f0..cad1772a5e 100644
--- a/libraries/libconfig/README
+++ b/libraries/libconfig/README
@@ -10,6 +10,11 @@ The library includes bindings for both the C and C++ languages. It
works on POSIX-compliant UNIX systems (GNU/Linux, Mac OS X, Solaris,
FreeBSD) and Windows (2000, XP and later).
+To install the library documentation (html and pdf) pass DOC=yes to
+the slackbuild as
+
+ DOC=yes ./libconfig.SlackBuild
+
To install the example programs and configuration files pass
EXAMPLES=yes to the slackbuild as
diff --git a/libraries/libconfig/libconfig.SlackBuild b/libraries/libconfig/libconfig.SlackBuild
index a271812947..f961e8e2dc 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/
diff --git a/libraries/libconfig/libconfig.info b/libraries/libconfig/libconfig.info
index 76d48ccea5..0d6fc59ed0 100644
--- a/libraries/libconfig/libconfig.info
+++ b/libraries/libconfig/libconfig.info
@@ -1,8 +1,8 @@
PRGNAM="libconfig"
-VERSION="1.6"
+VERSION="1.7.2"
HOMEPAGE="https://github.com/hyperrealm/libconfig"
-DOWNLOAD="https://github.com/hyperrealm/libconfig/archive/v1.6/libconfig-1.6.tar.gz"
-MD5SUM="2ccd24b6a2ee39f7ff8a3badfafb6539"
+DOWNLOAD="https://github.com/hyperrealm/libconfig/archive/v1.7.2/libconfig-1.7.2.tar.gz"
+MD5SUM="d666f0ca093906d34d6e1e4890053e62"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""