summaryrefslogtreecommitdiffstats
path: root/games/hatari/hatari.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/hatari/hatari.SlackBuild')
-rw-r--r--games/hatari/hatari.SlackBuild25
1 files changed, 13 insertions, 12 deletions
diff --git a/games/hatari/hatari.SlackBuild b/games/hatari/hatari.SlackBuild
index 323348c868..6dab2b4c9b 100644
--- a/games/hatari/hatari.SlackBuild
+++ b/games/hatari/hatari.SlackBuild
@@ -2,10 +2,17 @@
# Slackware build script for hatari
-# Written by B. Watson (yalhcru@gmail.com)
+# Written by B. Watson (urchlay@slackware.uk)
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20240419 bkw: update for v2.5.0.
+
+# 20230107 bkw:
+# - update for v2.4.1.
+# - fix bad icon symlink (symlinked a .svg to a .png filename, derp).
+# - coerce cmake to use python3, since hatariui now requires it.
+
# 20210102 bkw: update for v2.3.1.
# 20201218 bkw:
# - update for v2.3.0. Can't build older versions, sorry.
@@ -66,7 +73,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=hatari
-VERSION=${VERSION:-2.3.1}
+VERSION=${VERSION:-2.5.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -84,7 +91,7 @@ if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
exit 0
fi
-TMP=${TMP-/tmp/SBo}
+TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -169,6 +176,8 @@ sed -i \
# /usr/include for the libcapsimage headers, that is *the systemwide
# default location* for includes, and has been since the 1970s. Grr.
cmake \
+ -DPYTHONINTERP_FOUND=ON \
+ -DPYTHON_EXECUTABLE=/usr/bin/python3 \
-DCAPSIMAGE_INCLUDE_DIR=/usr/include \
-DCMAKE_VERBOSE_MAKEFILE=TRUE \
$SDL2OPT \
@@ -199,14 +208,6 @@ cp tools/hmsa/readme-hmsa.txt readme.txt gpl.txt \
doc/de/*.txt \
$DOCDIR
-# The UI has its own docs. These are actually used by the UI, so they
-# must be available in /usr/share/hatari (hence the symlinks).
-UIDOCDIR=$DOCDIR/${PRGNAM}ui
-mkdir -p $UIDOCDIR
-for i in README TODO release-notes.txt; do
- ln -s ../../../share/$PRGNAM/${PRGNAM}ui/$i $UIDOCDIR/$i
-done
-
# Someone might find the French man page useful. It's in utf-8, so
# put it in the right dir.
mkdir -p $PKG/usr/man/fr.UTF-8/man6 $PKG/usr/man/fr/man6
@@ -228,7 +229,7 @@ for i in $PKG/usr/share/icons/hicolor/[0-9]*; do
done
ln -s application-x-st-disk-image.svg \
- $PKG/usr/share/icons/hicolor/scalable/mimetypes/x-st-executable.png
+ $PKG/usr/share/icons/hicolor/scalable/mimetypes/x-st-executable.svg
# Don't symlink emutos to tos here, do it conditionally in doinst.sh.
( cd $PKG/usr/share/$PRGNAM && mv tos.img emutos.img )