aboutsummaryrefslogtreecommitdiff
path: root/games/angband/angband.SlackBuild
diff options
context:
space:
mode:
authorDavid Melik <dchmelik@gmail.com>2015-07-04 14:56:48 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-07-04 14:56:48 +0700
commitebd75326638c298d52349f955ff468cd8ae5d329 (patch)
treeca671ad66731c0c8f66931587ed9dcb31cde3a35 /games/angband/angband.SlackBuild
parent3db267fd4e43d8b8649e4f567db299744ebe7395 (diff)
games/angband: Updated for version 4.0.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/angband/angband.SlackBuild')
-rw-r--r--games/angband/angband.SlackBuild19
1 files changed, 7 insertions, 12 deletions
diff --git a/games/angband/angband.SlackBuild b/games/angband/angband.SlackBuild
index 92f62eb6ab8db..82cffe17f92bb 100644
--- a/games/angband/angband.SlackBuild
+++ b/games/angband/angband.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=angband
-VERSION=${VERSION:-3.5.1}
+VERSION=${VERSION:-4.0.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -58,9 +58,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
-rm -rf $TMP/$PRGNAM-v$VERSION
+rm -rf $TMP/$PRGNAM-$VERSION
cd $TMP
-tar xvf $CWD/$PRGNAM-v$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -90,21 +90,16 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
find $PKG -name "delete.me" -exec rm -f {} \;
-for i in \
- artifact ego_item flavor hints limits monster monster_base names object \
- object_base p_class p_hist p_race pain pit spell store terrain \
- vault ;
- do mv $PKG/etc/angband/edit/$i.txt \
- $PKG/etc/angband/edit/$i.txt.new ;
-done
+mkdir -p $PKG/var/games/angband/save
+mkdir -p $PKG/var/games/angband/scores
+chown -R root:games $PKG/var/games/angband
mkdir -p $PKG/usr/share/{applications,pixmaps}
cp $CWD/angband.png $PKG/usr/share/pixmaps
cp $CWD/angband.desktop $PKG/usr/share/applications
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- changes.txt compiling.txt copying.txt faq.txt readme.txt thanks.txt lib/help/ \
+cp -a changes.txt compiling.txt copying.txt faq.txt readme.txt thanks.txt lib/help/ \
$PKG/usr/doc/$PRGNAM-$VERSION
find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \;
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild