aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 43563a7bdb34..43bd7dd9fdf3 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 2d667455f74f..70d6ff785895 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