mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
games/larn: Updated for version 14.1.3.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
3eb7c245fb
commit
c81c167c54
3 changed files with 16 additions and 24 deletions
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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
|
|
||||||
|
|
Loading…
Reference in a new issue