summaryrefslogtreecommitdiff
path: root/games/larn
diff options
context:
space:
mode:
authorDavid Melik <davidnchmelik@gmail.com>2019-07-27 08:43:47 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-07-27 08:43:47 +0700
commit13878447effd4c132a0e00fae50e3aa3c722b7e1 (patch)
tree1496012a487121d4b8772df134eea5a1b71074b3 /games/larn
parent28d42b95a39e036c0270a23a7758d17c18c8aa99 (diff)
downloadslackbuilds-13878447effd4c132a0e00fae50e3aa3c722b7e1.tar.gz
games/larn: Update script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/larn')
-rw-r--r--games/larn/larn.SlackBuild6
-rw-r--r--games/larn/larn.sh2
2 files changed, 5 insertions, 3 deletions
diff --git a/games/larn/larn.SlackBuild b/games/larn/larn.SlackBuild
index 43563a7bdb..43bd7dd9fd 100644
--- a/games/larn/larn.SlackBuild
+++ b/games/larn/larn.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for larn
-# Copyright 2017 David Melik, Spokane, WA, USA
+# Copyright 2019 David Melik, Spokane, WA, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -77,9 +77,11 @@ cd ..
mkdir -p $PKG/usr/share/games/larn
cp -a larn data $PKG/usr/share/games/larn
cp $CWD/larn.sh $PKG/usr/share/games/larn
+chown -R games:users $PKG/usr/share/games/larn
+chmod 775 $PKG/usr/share/games/larn/data
mkdir -p $PKG/usr/games
cd $PKG/usr/games
-ln -fs /usr/share/games/larn/larn larn
+ln -fs /usr/share/games/larn/larn.sh larn
cd $TMP/RL_M-$VERSION
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
diff --git a/games/larn/larn.sh b/games/larn/larn.sh
index 2d667455f7..70d6ff7858 100644
--- a/games/larn/larn.sh
+++ b/games/larn/larn.sh
@@ -1,5 +1,5 @@
#!/bin/sh
USERDIR=$(pwd)
cd /usr/share/games/larn
-./larn
+./larn $1
cd $USERDIR