summaryrefslogtreecommitdiffstats
path: root/games/nethack
diff options
context:
space:
mode:
author Dave Woodfall2020-03-28 17:57:47 +0100
committer Willy Sudiarto Raharjo2020-04-04 04:50:05 +0200
commit638b7f3dc19cf48dce9f8f803e371b12aede7010 (patch)
tree21ca2ca978535b90e177ae32ab60c078bbe67acb /games/nethack
parente7dd67e83ad2cdfe6178799c9053d940725d2112 (diff)
downloadslackbuilds-638b7f3dc19cf48dce9f8f803e371b12aede7010.tar.gz
games/nethack: Updated for version 3.6.6.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/nethack')
-rw-r--r--games/nethack/nethack-366.patch33
-rw-r--r--games/nethack/nethack.SlackBuild9
-rw-r--r--games/nethack/nethack.info8
3 files changed, 42 insertions, 8 deletions
diff --git a/games/nethack/nethack-366.patch b/games/nethack/nethack-366.patch
new file mode 100644
index 0000000000..c8295c896e
--- /dev/null
+++ b/games/nethack/nethack-366.patch
@@ -0,0 +1,33 @@
+--- /var/lib/sbopkg/r0t/14.2/games/nethack/nethack.SlackBuild 2019-06-08 22:37:23.000000000 +0000
++++ nethack.SlackBuild 2020-03-26 02:19:34.386984395 +0000
+@@ -25,7 +25,8 @@
+ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+ PRGNAM=nethack
+-VERSION=${VERSION:-3.6.2}
++VERSION=${VERSION:-3.6.6}
++SRCDIR=NetHack-NetHack-${VERSION}_Released
+ SRCVERSION=$(echo $VERSION | sed "s,\.,,g")
+ BUILD=${BUILD:-1}
+ TAG=${TAG:-_SBo}
+@@ -63,9 +64,9 @@
+ rm -rf $PKG
+ mkdir -p $TMP $PKG $OUTPUT
+ cd $TMP
+-rm -rf $PRGNAM-$VERSION
++rm -rf $SRCDIR
+ tar xvf $CWD/$PRGNAM-$SRCVERSION-src.tgz
+-cd $PRGNAM-$VERSION
++cd $SRCDIR
+ chown -R root:root .
+ find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+@@ -97,7 +98,7 @@
+ cd sys/unix
+ sh setup.sh hints/linux
+ cd ../..
+-make -j1 install PREFIX=$PKG
++make -j1 install PREFIX=$PKG WINTTYLIB=-lncurses
+ mkdir -p $PKG/usr/man/man6
+ make PREFIX=$PKG -j1 install manpages # Multi-threaded builds fail.
+
diff --git a/games/nethack/nethack.SlackBuild b/games/nethack/nethack.SlackBuild
index f9061f8ead..10fddde55c 100644
--- a/games/nethack/nethack.SlackBuild
+++ b/games/nethack/nethack.SlackBuild
@@ -25,7 +25,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=nethack
-VERSION=${VERSION:-3.6.2}
+VERSION=${VERSION:-3.6.6}
+SRCDIR=NetHack-NetHack-${VERSION}_Released
SRCVERSION=$(echo $VERSION | sed "s,\.,,g")
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -63,9 +64,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
+rm -rf $SRCDIR
tar xvf $CWD/$PRGNAM-$SRCVERSION-src.tgz
-cd $PRGNAM-$VERSION
+cd $SRCDIR
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -97,7 +98,7 @@ sed -e "/^MANDIR\s*=/s|/usr/man/man6|$PKG/usr/man/man6|" -i sys/unix/Makefile.do
cd sys/unix
sh setup.sh hints/linux
cd ../..
-make -j1 install PREFIX=$PKG
+make -j1 install PREFIX=$PKG WINTTYLIB=-lncurses
mkdir -p $PKG/usr/man/man6
make PREFIX=$PKG -j1 install manpages # Multi-threaded builds fail.
diff --git a/games/nethack/nethack.info b/games/nethack/nethack.info
index 8b08aa9c73..7a3aa538cc 100644
--- a/games/nethack/nethack.info
+++ b/games/nethack/nethack.info
@@ -1,8 +1,8 @@
PRGNAM="nethack"
-VERSION="3.6.2"
-HOMEPAGE="http://nethack.org"
-DOWNLOAD="http://nethack.org/download/3.6.2/nethack-362-src.tgz"
-MD5SUM="567c89d9606456ce98c1b9535d024b8f"
+VERSION="3.6.6"
+HOMEPAGE="https://nethack.org"
+DOWNLOAD="https://nethack.org/download/3.6.6/nethack-366-src.tgz"
+MD5SUM="6c9a75f556d24c66801d74d8727a602e"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""