summaryrefslogtreecommitdiffstats
path: root/games/CorsixTH
diff options
context:
space:
mode:
Diffstat (limited to 'games/CorsixTH')
-rw-r--r--games/CorsixTH/CorsixTH.SlackBuild25
-rw-r--r--games/CorsixTH/CorsixTH.info8
-rw-r--r--games/CorsixTH/README3
-rw-r--r--games/CorsixTH/slack-desc4
4 files changed, 24 insertions, 16 deletions
diff --git a/games/CorsixTH/CorsixTH.SlackBuild b/games/CorsixTH/CorsixTH.SlackBuild
index 5b413ce9b2..742cc60bdc 100644
--- a/games/CorsixTH/CorsixTH.SlackBuild
+++ b/games/CorsixTH/CorsixTH.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for CorsixTH
-# Copyright 2019-2020 Nick Smallbone, Gothenburg, Sweden
+# Copyright 2019-2022 Nick Smallbone, Gothenburg, Sweden
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,14 +22,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-# 20210217 bkw: modified by SlackBuilds.org: build would fail if both
-# lua and lua52 (or lua53) were installed. The fix is to force cmake
-# to use the libraries from lua (version 5.1.5).
+cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=CorsixTH
-VERSION=${VERSION:-0.63}
+VERSION=${VERSION:-0.66}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -39,7 +38,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+# 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
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -73,6 +79,9 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# Thanks to Ben Watson for the following fix:
+# "build would fail if both lua and lua52 (or lua53) were installed.
+# The fix is to force cmake to use the libraries from lua (version 5.1.5)."
mkdir -p build
cd build
cmake \
@@ -103,4 +112,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/games/CorsixTH/CorsixTH.info b/games/CorsixTH/CorsixTH.info
index f596efe8a1..60c53ab9e7 100644
--- a/games/CorsixTH/CorsixTH.info
+++ b/games/CorsixTH/CorsixTH.info
@@ -1,10 +1,10 @@
PRGNAM="CorsixTH"
-VERSION="0.63"
+VERSION="0.66"
HOMEPAGE="http://corsixth.com"
-DOWNLOAD="https://github.com/CorsixTH/CorsixTH/archive/v0.63/CorsixTH-0.63.tar.gz"
-MD5SUM="83b0787a0fb2a19eea45b069e023d844"
+DOWNLOAD="https://github.com/CorsixTH/CorsixTH/archive/v0.66/CorsixTH-0.66.tar.gz"
+MD5SUM="cc66cebaa183318429d5845a1843b99e"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="SDL2 SDL2_mixer lua ffmpeg"
+REQUIRES="lua-filesystem lua-lpeg"
MAINTAINER="Nick Smallbone"
EMAIL="nick@smallbone.se"
diff --git a/games/CorsixTH/README b/games/CorsixTH/README
index 7a2ecff2e4..74aadbe815 100644
--- a/games/CorsixTH/README
+++ b/games/CorsixTH/README
@@ -7,5 +7,4 @@ If you don't have Theme Hospital, you can buy it on GOG, or find
the free demo version. The first time you launch CorsixTH, it will
ask you to point it at the data files.
-NOTE: to get music in-game, you need the the fluidsynth and
-fluid-soundfont packages.
+NOTE: to get music in-game, you need the fluid-soundfont package.
diff --git a/games/CorsixTH/slack-desc b/games/CorsixTH/slack-desc
index ba44ed2668..3d322b9e56 100644
--- a/games/CorsixTH/slack-desc
+++ b/games/CorsixTH/slack-desc
@@ -13,7 +13,7 @@ CorsixTH: It requires the original Theme Hospital data files in order to run. If
CorsixTH: you don't have Theme Hospital, you can buy it on GOG, or find the free
CorsixTH: demo version.
CorsixTH:
-CorsixTH: NOTE: To get music in-game, you need the fluidsynth and
-CorsixTH: fluid-soundfont packages.
+CorsixTH: NOTE: To get music in-game, you need the fluid-soundfont package.
CorsixTH:
CorsixTH: Home page: http://corsixth.com
+CorsixTH: