diff options
author | Jason Graham <jgraha8@gmail.com> | 2017-09-22 20:10:07 +0100 |
---|---|---|
committer | David Spencer <idlemoor@slackbuilds.org> | 2017-09-22 20:10:07 +0100 |
commit | 9525ae1b4baad2bf918b8c94e40439e2daa06d99 (patch) | |
tree | d231237216f97f7f82dc24f78d6854915aa710c6 /libraries/libconfig/libconfig.SlackBuild | |
parent | 6829509ac165abfcd2f53123462c1719a0c8c538 (diff) |
libraries/libconfig: Updated for version 1.6.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'libraries/libconfig/libconfig.SlackBuild')
-rw-r--r-- | libraries/libconfig/libconfig.SlackBuild | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/libraries/libconfig/libconfig.SlackBuild b/libraries/libconfig/libconfig.SlackBuild index 085dfb2eb3ce1..a271812947d26 100644 --- a/libraries/libconfig/libconfig.SlackBuild +++ b/libraries/libconfig/libconfig.SlackBuild @@ -2,7 +2,8 @@ # Slackware build script for libconfig -# Copyright 2016 Manuel Argüelles +# Copyright 2017 Manuel Argüelles <manuel.arguelles@gmail.com> +# Copyright 2017 Jason Graham <jgraha8@gmail.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +24,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=libconfig -VERSION=${VERSION:-1.5} +VERSION=${VERSION:-1.6} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -54,6 +55,8 @@ else LIBDIRSUFFIX="" fi +EXAMPLES=${EXAMPLES:-no} + set -e rm -rf $PKG @@ -69,6 +72,8 @@ 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 + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -82,7 +87,7 @@ CXXFLAGS="$SLKCFLAGS" \ --disable-static \ --build=$ARCH-slackware-linux -make +make -j1 make install DESTDIR=$PKG find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ @@ -92,9 +97,17 @@ 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 $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + INSTALL COPYING.LIB AUTHORS README ChangeLog \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +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/ + cp -a examples/c++/*.{cfg,cpp} $PKG/usr/doc/$PRGNAM-$VERSION/examples/c++/ +fi + mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |