From db9fa7f0014beffe5f5bd74085c205e4af784101 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Tue, 30 May 2023 15:43:31 -0400 Subject: [PATCH] games/sumeria: actually use SLKCFLAGS. Signed-off-by: B. Watson Signed-off-by: Willy Sudiarto Raharjo --- games/sumeria/sumeria.SlackBuild | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/games/sumeria/sumeria.SlackBuild b/games/sumeria/sumeria.SlackBuild index f4e80fed5b..96f631bec8 100644 --- a/games/sumeria/sumeria.SlackBuild +++ b/games/sumeria/sumeria.SlackBuild @@ -8,11 +8,13 @@ # VERSION came from the server timestamp of the source file. +# 20230530 bkw: BUILD=2, actually use SLKCFLAGS. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=sumeria VERSION=${VERSION:-20020219} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -35,16 +37,12 @@ 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 @@ -52,7 +50,7 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG/usr/games $OUTPUT cd $PKG/usr/games -gcc -include stdlib.h -Wl,-s -o $PRGNAM $CWD/$PRGNAM.c -lm +gcc $SLKCFLAGS -include stdlib.h -Wl,-s -o $PRGNAM $CWD/$PRGNAM.c -lm mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README