mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
libraries/libconfig: Updated for version 1.7.2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
adfa95c29b
commit
1e3326ed42
3 changed files with 20 additions and 9 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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/
|
||||
|
|
|
@ -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=""
|
||||
|
|
Loading…
Reference in a new issue