aboutsummaryrefslogtreecommitdiff
path: root/games/larn/larn.SlackBuild
diff options
context:
space:
mode:
authorDavid Melik <dchmelik@gmail.com>2020-01-08 05:02:07 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-01-08 05:02:07 +0700
commitc81c167c5480cabb6fcec00de3a9787a48182e9f (patch)
treec2815194c29263d7d9b3f29f0af7d2948f456619 /games/larn/larn.SlackBuild
parent3eb7c245fbaecb416f5dfba8f029ce41ce27a2ea (diff)
games/larn: Updated for version 14.1.3.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/larn/larn.SlackBuild')
-rw-r--r--games/larn/larn.SlackBuild28
1 files changed, 11 insertions, 17 deletions
diff --git a/games/larn/larn.SlackBuild b/games/larn/larn.SlackBuild
index 43bd7dd9fdf35..59cb563ef779f 100644
--- a/games/larn/larn.SlackBuild
+++ b/games/larn/larn.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for larn
-# Copyright 2019 David Melik, Spokane, WA, USA
+# Copyright 2020 SlackBuilds.org Project, David Melik, Spokane, WA, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=larn
-VERSION=${VERSION:-14.0.2}
+VERSION=${VERSION:-14.1.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -61,24 +61,18 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf RL_M-$VERSION
tar xvf $CWD/RL_M-$VERSION.tar.gz
-cd RL_M-$VERSION
-chown -R root:root .
-find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+cd RL_M-$VERSION/src
-cd build
- cmake larn.sln -DCMAKE_BUILD_TYPE=Debug '.'
- make
- mv larn ..
+make
+
+mv larn ..
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
+cp -a larn $PKG/usr/share/games/larn
+mkdir -p $PKG/usr/share/games/larn/data
+chown -R games:users $PKG/usr/share/games/larn/data
chmod 775 $PKG/usr/share/games/larn/data
+cp $CWD/larn.sh $PKG/usr/share/games/larn
mkdir -p $PKG/usr/games
cd $PKG/usr/games
ln -fs /usr/share/games/larn/larn.sh larn
@@ -88,7 +82,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a MANUAL.txt README.md docs $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a manual.txt README.md changelog.txt $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install