games/angband: Updated for version 4.0.0.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
David Melik 2015-07-04 14:56:48 +07:00 committed by Willy Sudiarto Raharjo
parent 3db267fd4e
commit ebd7532663
3 changed files with 10 additions and 43 deletions

View File

@ -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

View File

@ -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=""

View File

@ -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