diff options
author | B. Watson <urchlay@slackware.uk> | 2023-05-30 15:43:31 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-06-03 10:38:31 +0700 |
commit | db9fa7f0014beffe5f5bd74085c205e4af784101 (patch) | |
tree | 706ba9e76205ba559da9951b00331efec64bc9b2 /games | |
parent | 53473c99aabc36762241f13c7e36c919f70f4798 (diff) |
games/sumeria: actually use SLKCFLAGS.
Signed-off-by: B. Watson <urchlay@slackware.uk>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r-- | games/sumeria/sumeria.SlackBuild | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/games/sumeria/sumeria.SlackBuild b/games/sumeria/sumeria.SlackBuild index f4e80fed5be51..96f631bec871a 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 |