diff options
author | David Melik <dchmelik@gmail.com> | 2015-07-04 14:56:48 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-07-04 14:56:48 +0700 |
commit | ebd75326638c298d52349f955ff468cd8ae5d329 (patch) | |
tree | ca671ad66731c0c8f66931587ed9dcb31cde3a35 | |
parent | 3db267fd4e43d8b8649e4f567db299744ebe7395 (diff) | |
download | slackbuilds-ebd75326638c298d52349f955ff468cd8ae5d329.tar.gz |
games/angband: Updated for version 4.0.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | games/angband/angband.SlackBuild | 19 | ||||
-rw-r--r-- | games/angband/angband.info | 6 | ||||
-rw-r--r-- | games/angband/doinst.sh | 28 |
3 files changed, 10 insertions, 43 deletions
diff --git a/games/angband/angband.SlackBuild b/games/angband/angband.SlackBuild index 92f62eb6ab..82cffe17f9 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 diff --git a/games/angband/angband.info b/games/angband/angband.info index f6ec88995d..0c61d95a72 100644 --- a/games/angband/angband.info +++ b/games/angband/angband.info @@ -1,8 +1,8 @@ PRGNAM="angband" -VERSION="v3.5.1" +VERSION="4.0.0" HOMEPAGE="http://www.rephial.org/" -DOWNLOAD="http://rephial.org/downloads/3.5/angband-v3.5.1.tar.gz" -MD5SUM="3b9a324551cfd48b101f197a8441f135" +DOWNLOAD="http://rephial.org/downloads/4.0/angband-4.0.0.tar.gz" +MD5SUM="3813f95f46166ff383923eaba462b194" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" diff --git a/games/angband/doinst.sh b/games/angband/doinst.sh index d792186a6c..5fb28930db 100644 --- a/games/angband/doinst.sh +++ b/games/angband/doinst.sh @@ -1,31 +1,3 @@ -config() { - NEW="$1" - OLD="$(dirname $NEW)/$(basename $NEW .new)" - [ ! -r $OLD ] && mv $NEW $OLD - rm -f $NEW -} - -config etc/angband/edit/artifact.txt.new -config etc/angband/edit/ego_item.txt.new -config etc/angband/edit/flavor.txt.new -config etc/angband/edit/hints.txt.new -config etc/angband/edit/limits.txt.new -config etc/angband/edit/monster.txt.new -config etc/angband/edit/monster_base.txt.new -config etc/angband/edit/names.txt.new -config etc/angband/edit/object.txt.new -config etc/angband/edit/object_base.txt.new -config etc/angband/edit/p_class.txt.new -config etc/angband/edit/p_hist.txt.new -config etc/angband/edit/p_race.txt.new -config etc/angband/edit/pain.txt.new -config etc/angband/edit/pit.txt.new -config etc/angband/edit/room_template.txt.new -config etc/angband/edit/spell.txt.new -config etc/angband/edit/store.txt.new -config etc/angband/edit/terrain.txt.new -config etc/angband/edit/vault.txt.new - if [ -x /usr/bin/update-desktop-database ]; then /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 fi |