summaryrefslogtreecommitdiff
path: root/games/angband/angband.SlackBuild
diff options
context:
space:
mode:
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 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