summaryrefslogtreecommitdiff
path: root/libraries/iniparser
diff options
context:
space:
mode:
authorSteven King <kingrst@gmail.com>2017-01-03 17:31:22 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-01-03 17:31:22 +0700
commitfe0217e45f7b30e3ff51ccf23235a4b58b6f548a (patch)
treeb23f22dbb8f6a747e051f4d09fa85801668f4bbe /libraries/iniparser
parentc07d970a8c8436493115c2ad12e6824b827331e0 (diff)
downloadslackbuilds-fe0217e45f7b30e3ff51ccf23235a4b58b6f548a.tar.gz
libraries/iniparser: Updated for version 4.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/iniparser')
-rw-r--r--libraries/iniparser/iniparser.SlackBuild30
-rw-r--r--libraries/iniparser/iniparser.info8
2 files changed, 15 insertions, 23 deletions
diff --git a/libraries/iniparser/iniparser.SlackBuild b/libraries/iniparser/iniparser.SlackBuild
index a81eefa589..17e42fecef 100644
--- a/libraries/iniparser/iniparser.SlackBuild
+++ b/libraries/iniparser/iniparser.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for Iniparser
-# Copyright 2010, Steven King <kingrst@gmail.com>
+# Copyright 2017, Steven King <kingrst@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,13 +23,13 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=iniparser
-VERSION=${VERSION:-3.1}
+VERSION=${VERSION:-4.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -40,8 +40,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -62,40 +62,32 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar vxzf $CWD/${PRGNAM}-${VERSION}.tar.gz
-mv ${PRGNAM} ${PRGNAM}-${VERSION}
+tar vxf $CWD/${PRGNAM}-${VERSION}.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
CXFLAGS="$SLKCFLAGS" \
make
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+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
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-
mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}
mkdir -p $PKG/usr/include
-cp -ar \
- AUTHORS INSTALL LICENSE README html \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -ar AUTHORS INSTALL LICENSE README.md html $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- libiniparser.a libiniparser.so.0 \
- $PKG/usr/lib${LIBDIRSUFFIX}
+cp -a libiniparser.a libiniparser.so.0 $PKG/usr/lib${LIBDIRSUFFIX}
-cp -a \
- ./src/dictionary.h ./src/iniparser.h \
- $PKG/usr/include
+cp -a ./src/dictionary.h ./src/iniparser.h $PKG/usr/include
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
diff --git a/libraries/iniparser/iniparser.info b/libraries/iniparser/iniparser.info
index b5e3850639..de282c9c58 100644
--- a/libraries/iniparser/iniparser.info
+++ b/libraries/iniparser/iniparser.info
@@ -1,8 +1,8 @@
PRGNAM="iniparser"
-VERSION="3.1"
-HOMEPAGE="http://ndevilla.free.fr/iniparser/"
-DOWNLOAD="http://ndevilla.free.fr/iniparser/iniparser-3.1.tar.gz"
-MD5SUM="0aa4f995468ed390caf323f50a285bc3"
+VERSION="4.0"
+HOMEPAGE="https://github.com/ndevilla/iniparser"
+DOWNLOAD="https://github.com/ndevilla/iniparser/archive/v4.0/iniparser-4.0.tar.gz"
+MD5SUM="94c7278f8d22de1a31320219b27634b0"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""