diff options
author | Steven King <kingrst@gmail.com> | 2017-01-03 17:31:22 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-01-03 17:31:22 +0700 |
commit | fe0217e45f7b30e3ff51ccf23235a4b58b6f548a (patch) | |
tree | b23f22dbb8f6a747e051f4d09fa85801668f4bbe /libraries/iniparser/iniparser.SlackBuild | |
parent | c07d970a8c8436493115c2ad12e6824b827331e0 (diff) | |
download | slackbuilds-fe0217e45f7b30e3ff51ccf23235a4b58b6f548a.tar.gz |
libraries/iniparser: Updated for version 4.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/iniparser/iniparser.SlackBuild')
-rw-r--r-- | libraries/iniparser/iniparser.SlackBuild | 30 |
1 files changed, 11 insertions, 19 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 |