aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-10-20 05:17:26 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-11-02 19:28:37 +0700
commit9d20408e6cd8a1f734b34b7dc2d4b000e3872242 (patch)
treedbeef8d624f89e28030839aec046e33d91de0ca9 /games
parent198790d2096ed1dfdcd4e5a038b686858871dd96 (diff)
games/crawl: Build with lua51.
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/crawl/crawl.SlackBuild28
-rw-r--r--games/crawl/crawl.info2
-rw-r--r--games/crawl/wrapper.sh3
3 files changed, 25 insertions, 8 deletions
diff --git a/games/crawl/crawl.SlackBuild b/games/crawl/crawl.SlackBuild
index 3a1d62bc4740e..35d83ccad3710 100644
--- a/games/crawl/crawl.SlackBuild
+++ b/games/crawl/crawl.SlackBuild
@@ -22,11 +22,21 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20241020 bkw: Modified by SlackBuilds.org: BUILD=2
+# - build with lua51.
+# - use wrapper scripts, so the binaries can find the data files.
+# Note: This package is still broken.
+# - the crawl-ascii binary doesn't work (it didn't work in BUILD 1 either).
+# - it installs binaries to /usr/share/games/bin. binaries do not
+# belong in /usr/share.
+# - it installs its data dirs directly to /usr/share/games, instead of
+# a properly separated /usr/share/games/crawl dir.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=crawl
VERSION=${VERSION:-0.32.1}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
SRCNAM=stone_soup
@@ -77,7 +87,6 @@ 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 {} \;
-mkdir -p $PKG/usr/games
cd source
# Do not remove quotation marks from SAVEDIR='~/.crawl/'.
# $SAVEDIR needs evaluating at runtime.
@@ -85,21 +94,26 @@ cd source
prefix=/usr/share/games \
COPY_FONTS=1 \
DATADIR=/usr/share/games/crawl \
+ LUA_PACKAGE=lua51
SAVEDIR='~/.crawl/' \
TILES=1
+ strip crawl
make install \
prefix=/usr/share/games \
DESTDIR=$PKG
make clean
make \
- prefix=/usr \
- DATADIR=/usr/share/crawl \
+ prefix=/usr/share/games \
+ DATADIR=/usr/share/games/crawl \
+ LUA_PACKAGE=lua51
SAVEDIR='~/.crawl/'
- cp crawl $PKG/usr/games/crawl-ascii
+ strip crawl
+ cp crawl $PKG/usr/share/games/bin/crawl-ascii
cd ..
-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
+mkdir -p $PKG/usr/games
+install -oroot -groot -m0755 $CWD/wrapper.sh $PKG/usr/games/crawl
+ln -s crawl $PKG/usr/games/crawl-ascii
mkdir -p $PKG/usr/man/man6
gzip -9 -c docs/crawl.6 > $PKG/usr/man/man6/crawl.6.gz
diff --git a/games/crawl/crawl.info b/games/crawl/crawl.info
index 9c2396a52ca1f..cb624b5c36624 100644
--- a/games/crawl/crawl.info
+++ b/games/crawl/crawl.info
@@ -5,6 +5,6 @@ DOWNLOAD="https://github.com/crawl/crawl/releases/download/0.32.1/stone_soup-0.3
MD5SUM="29adceddd314416258b586ef76f99d56"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="lua"
+REQUIRES="lua51"
MAINTAINER="David Melik"
EMAIL="dchmelik@gmail.com"
diff --git a/games/crawl/wrapper.sh b/games/crawl/wrapper.sh
new file mode 100644
index 0000000000000..769327bf8b664
--- /dev/null
+++ b/games/crawl/wrapper.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec /usr/share/games/bin/$( basename $0 ) "$@"