games/larn: Updated for version 14.1.3.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
David Melik 2020-01-08 05:02:07 +07:00 committed by Willy Sudiarto Raharjo
parent 3eb7c245fb
commit c81c167c54
No known key found for this signature in database
GPG key ID: 887B8374D7333381
3 changed files with 16 additions and 24 deletions

View file

@ -2,7 +2,7 @@
# Slackware build script for larn # 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. # All rights reserved.
# #
# Redistribution and use of this script, with or without modification, is # Redistribution and use of this script, with or without modification, is
@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=larn PRGNAM=larn
VERSION=${VERSION:-14.0.2} VERSION=${VERSION:-14.1.3}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
@ -61,24 +61,18 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP cd $TMP
rm -rf RL_M-$VERSION rm -rf RL_M-$VERSION
tar xvf $CWD/RL_M-$VERSION.tar.gz tar xvf $CWD/RL_M-$VERSION.tar.gz
cd RL_M-$VERSION cd RL_M-$VERSION/src
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 build make
cmake larn.sln -DCMAKE_BUILD_TYPE=Debug '.'
make mv larn ..
mv larn ..
cd .. cd ..
mkdir -p $PKG/usr/share/games/larn mkdir -p $PKG/usr/share/games/larn
cp -a larn data $PKG/usr/share/games/larn cp -a larn $PKG/usr/share/games/larn
cp $CWD/larn.sh $PKG/usr/share/games/larn mkdir -p $PKG/usr/share/games/larn/data
chown -R games:users $PKG/usr/share/games/larn chown -R games:users $PKG/usr/share/games/larn/data
chmod 775 $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 mkdir -p $PKG/usr/games
cd $PKG/usr/games cd $PKG/usr/games
ln -fs /usr/share/games/larn/larn.sh larn 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 | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION 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 cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install mkdir -p $PKG/install

View file

@ -1,10 +1,10 @@
PRGNAM="larn" PRGNAM="larn"
VERSION="14.0.2" VERSION="14.1.3"
HOMEPAGE="https://web.archive.org/web/20170408164536/https://github.com/atsb/RL_M" HOMEPAGE="https://web.archive.org/web/20170408164536/https://github.com/atsb/RL_M"
DOWNLOAD="http://ponce.cc/slackware/sources/repo/RL_M-14.0.2.tar.gz" DOWNLOAD="https://github.com/atsb/RL_M/archive/14.1.3/RL_M-14.1.3.tar.gz"
MD5SUM="481f03f6642aea0aeef7eb9d38fff881" MD5SUM="059f6160a9d79244417a19cb78ea2540"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
REQUIRES="" REQUIRES=""
MAINTAINER="David Melik" MAINTAINER="David Melik"
EMAIL="davidnchmelik@gmail.com" EMAIL="dchmelik@gmail.com"

View file

@ -1,5 +1,3 @@
#!/bin/sh #!/bin/sh
USERDIR=$(pwd)
cd /usr/share/games/larn cd /usr/share/games/larn
exec /usr/share/games/larn "$@" exec /usr/share/games/larn/larn "$@"
cd $USERDIR