summaryrefslogtreecommitdiffstats
path: root/games/tome/tome.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/tome/tome.SlackBuild')
-rw-r--r--games/tome/tome.SlackBuild17
1 files changed, 7 insertions, 10 deletions
diff --git a/games/tome/tome.SlackBuild b/games/tome/tome.SlackBuild
index d7d371fea5..b31b3aa0b6 100644
--- a/games/tome/tome.SlackBuild
+++ b/games/tome/tome.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for tome
-# Copyright 2014-2018 Dimitris Zlatanidis Orestiada, Greece
+# Copyright 2014-2024 Dimitris Zlatanidis Orestiada, Greece
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=tome
SRCNAM=t-engine4-src
-VERSION=${VERSION:-1.5.10}
+VERSION=${VERSION:-1.7.6}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -39,9 +39,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -78,15 +75,15 @@ unzip -oj -qq game/engines/te4-${VERSION}.teae -d icons
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 \
+ -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 {} \+
-# correction of SDL2 headers directory
-sed -i "s/opt\/SDL-2.0/usr/" premake4.lua
+cp premake4.lua premake5.lua
+patch -p1 < $CWD/aur-tome4.patch
# build game
-premake4 gmake
+premake5 gmake
env -u ARCH make
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \