aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-10-18 03:01:45 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-11-02 19:28:33 +0700
commit5b5b8034e0826c5eb310a7517c166e0328564f54 (patch)
tree55cf169c6e0b119f89f84afbad649523dbecb602 /games
parentbf8a4b2811d4537270f79aff769bb40ce955c32c (diff)
games/tome: Build with -j1, strip binary.
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/tome/tome.SlackBuild31
1 files changed, 19 insertions, 12 deletions
diff --git a/games/tome/tome.SlackBuild b/games/tome/tome.SlackBuild
index 403559c078f0..d37a7f5d9722 100644
--- a/games/tome/tome.SlackBuild
+++ b/games/tome/tome.SlackBuild
@@ -22,12 +22,22 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20241018 bkw: Modified by SlackBuilds.org, BUILD=2:
+# - install t-engine stripped.
+# - build with -j1 to prevent semi-random failures.
+
+# 20241018 bkw:
+# Note: there is still an issue with this build: it installs
+# the game binary to /usr/share, which is supposed to be for
+# architecture-independent data, not compiled code. Not going to fix
+# this right now (busy with other things).
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=tome
SRCNAM=t-engine4-src
VERSION=${VERSION:-1.7.6}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -73,21 +83,18 @@ cd $SRCNAM-$VERSION
# extract icons
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 \
- \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
# correction of SDL2 headers directory
sed -i "s/opt\/SDL-2.0/usr/" premake4.lua
# build game
+# 20241018 bkw: added -j1 to make. Without it, the build was failing
+# about 50% of the time. With it, it built successfully 10 times in
+# a row.
premake4 gmake
-env -u ARCH make
-
-find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+env -u ARCH make -j1
# copy the data game
mkdir -p $PKG/usr/share/games/$PRGNAM $PKG/usr/bin
@@ -95,14 +102,14 @@ cp -rf game $PKG/usr/share/games/$PRGNAM
cp -rf bootstrap $PKG/usr/share/games/$PRGNAM
# install the game executable and the launcher
-install -D -m0755 t-engine $PKG/usr/share/games/$PRGNAM
+install -s -D -m0755 t-engine $PKG/usr/share/games/$PRGNAM
install -D -m0755 $CWD/$PRGNAM.sh $PKG/usr/bin/$PRGNAM
# install .desktop
mkdir -p $PKG/usr/share/applications
install -D -m644 $CWD/$PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desktop
-# install icon game
+# install icon
mkdir -p $PKG/usr/share/pixmaps/
install -D -m644 icons/te4-icon.png $PKG/usr/share/pixmaps/$PRGNAM.png