diff options
author | Steven Voges <svoges.sbo@gmail.com> | 2024-02-08 07:16:35 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-02-10 16:09:48 +0700 |
commit | 549ed140306e849e07ca918aff8af097649480f2 (patch) | |
tree | e56dbbf5c1e027d529176c56777d8b84282bd612 | |
parent | 8748008e4d915df597179ac41fe31d0541467514 (diff) |
libraries/simpleini: Updated for version 4.22.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | libraries/simpleini/simpleini.SlackBuild | 26 | ||||
-rw-r--r-- | libraries/simpleini/simpleini.info | 6 |
2 files changed, 26 insertions, 6 deletions
diff --git a/libraries/simpleini/simpleini.SlackBuild b/libraries/simpleini/simpleini.SlackBuild index 7e5fe72e8686..cde2789755b4 100644 --- a/libraries/simpleini/simpleini.SlackBuild +++ b/libraries/simpleini/simpleini.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for simpleini -# Copyright 2022-2023 Steven Voges <svoges.sbo@gmail.com> +# Copyright 2022-2024 Steven Voges <Oregon, USA> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,12 +25,18 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=simpleini -VERSION=${VERSION:-4.20} +VERSION=${VERSION:-4.22} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} -ARCH=noarch +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" @@ -41,6 +47,20 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + set -e rm -rf $PKG diff --git a/libraries/simpleini/simpleini.info b/libraries/simpleini/simpleini.info index 7205ed217f0b..72f590d499ff 100644 --- a/libraries/simpleini/simpleini.info +++ b/libraries/simpleini/simpleini.info @@ -1,8 +1,8 @@ PRGNAM="simpleini" -VERSION="4.20" +VERSION="4.22" HOMEPAGE="https://github.com/brofield/simpleini" -DOWNLOAD="https://github.com/brofield/simpleini/archive/v4.20/simpleini-4.20.tar.gz" -MD5SUM="b5629c1fe054438db6f2be0ecc52e479" +DOWNLOAD="https://github.com/brofield/simpleini/archive/v4.22/simpleini-4.22.tar.gz" +MD5SUM="440bd308bbc5e1c39ab0ac3db14971f1" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |