diff options
Diffstat (limited to 'libraries/simpleini/simpleini.SlackBuild')
-rw-r--r-- | libraries/simpleini/simpleini.SlackBuild | 26 |
1 files changed, 23 insertions, 3 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 |