diff options
-rw-r--r-- | games/larn/larn.SlackBuild | 28 | ||||
-rw-r--r-- | games/larn/larn.info | 8 | ||||
-rw-r--r-- | games/larn/larn.sh | 4 |
3 files changed, 16 insertions, 24 deletions
diff --git a/games/larn/larn.SlackBuild b/games/larn/larn.SlackBuild index 43bd7dd9fdf3..59cb563ef779 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 diff --git a/games/larn/larn.info b/games/larn/larn.info index 46ebd9d1ee58..a9ea7f392149 100644 --- a/games/larn/larn.info +++ b/games/larn/larn.info @@ -1,10 +1,10 @@ PRGNAM="larn" -VERSION="14.0.2" +VERSION="14.1.3" 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" -MD5SUM="481f03f6642aea0aeef7eb9d38fff881" +DOWNLOAD="https://github.com/atsb/RL_M/archive/14.1.3/RL_M-14.1.3.tar.gz" +MD5SUM="059f6160a9d79244417a19cb78ea2540" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" MAINTAINER="David Melik" -EMAIL="davidnchmelik@gmail.com" +EMAIL="dchmelik@gmail.com" diff --git a/games/larn/larn.sh b/games/larn/larn.sh index 579b6e037880..8d43c20f2e5b 100644 --- a/games/larn/larn.sh +++ b/games/larn/larn.sh @@ -1,5 +1,3 @@ #!/bin/sh -USERDIR=$(pwd) cd /usr/share/games/larn -exec /usr/share/games/larn "$@" -cd $USERDIR +exec /usr/share/games/larn/larn "$@" |