diff options
author | David Melik <davidnchmelik@gmail.com> | 2017-05-24 09:19:16 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-05-27 07:30:51 +0700 |
commit | aac8afd3de8e09177ef1c0ff2bc89197f870b1a6 (patch) | |
tree | a0ef808c6f6bff3a271e2a83cedf87fcbbe92f0b /games/larn/larn.SlackBuild | |
parent | 2729bd0473b88be9548c4226ccac128cb9602c63 (diff) |
games/larn: Updated for version 14.0.2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/larn/larn.SlackBuild')
-rw-r--r-- | games/larn/larn.SlackBuild | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/games/larn/larn.SlackBuild b/games/larn/larn.SlackBuild index cdd184e8375b1..43563a7bdb343 100644 --- a/games/larn/larn.SlackBuild +++ b/games/larn/larn.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for larn -# Copyright 2017 SlackBuilds.org Project, David Melik, Spokane, WA, USA +# Copyright 2017 David Melik, Spokane, WA, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,13 +23,10 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=larn -VERSION=${VERSION:-3621914} +VERSION=${VERSION:-14.0.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -SRCNAM=larn-linux -COMMIT=${COMMIT:-36219143703cced4961fdc2a435106c0aa1e0a55} - if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i586 ;; @@ -62,9 +59,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $SRCNAM-$COMMIT -tar xvf $CWD/$SRCNAM-$COMMIT.tar.gz -cd $SRCNAM-$COMMIT +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 \ @@ -72,19 +69,24 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -# Handle CFLAGS, DESTDIR and PREFIX in src/makefile and larn.sh -patch -p1 < $CWD/larn-fixups.patch - -cd src - CFLAGS="$SLKCFLAGS" make - make install DESTDIR=$PKG +cd build + cmake larn.sln -DCMAKE_BUILD_TYPE=Debug '.' + 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 +mkdir -p $PKG/usr/games +cd $PKG/usr/games +ln -fs /usr/share/games/larn/larn larn +cd $TMP/RL_M-$VERSION find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a README.md history.txt readme.txt $PKG/usr/doc/$PRGNAM-$VERSION +cp -a MANUAL.txt README.md docs $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |