nethack: update to 3.6.4

This commit is contained in:
Leonid Plyushch 2020-01-13 15:36:08 +02:00 committed by Henrik Grimler
parent 5e341a2c19
commit a239fa9557
2 changed files with 12 additions and 12 deletions

View File

@ -2,11 +2,10 @@ TERMUX_PKG_HOMEPAGE=http://www.nethack.org/
TERMUX_PKG_DESCRIPTION="Dungeon crawl game"
TERMUX_PKG_LICENSE="Nethack"
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com> @xeffyr"
TERMUX_PKG_VERSION=3.6.2
TERMUX_PKG_REVISION=1
TERMUX_PKG_VERSION=3.6.4
TERMUX_PKG_SRCURL=http://www.nethack.org/download/${TERMUX_PKG_VERSION}/nethack-${TERMUX_PKG_VERSION//./}-src.tgz
TERMUX_PKG_SHA256=fbd00ada6a4ee347ecd4a350a5b2995b4b4ab5dcc63881b3bc4485b0479ddb1d
TERMUX_PKG_DEPENDS="ncurses"
TERMUX_PKG_SHA256=0531ab8466032611d61f702cb71fb3ceca78a7a4918885c1b4f2f17cb57dbd59
TERMUX_PKG_DEPENDS="gzip, ncurses"
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_make_install() {

View File

@ -1,23 +1,24 @@
--- ../cache/nethack-3.6.1/sys/unix/hints/linux 2018-04-01 10:10:21.000000000 +0000
+++ ./sys/unix/hints/linux 2018-07-13 01:03:12.297078180 +0000
@@ -10,7 +10,8 @@
diff -uNr NetHack-NetHack-3.6.4_Released/sys/unix/hints/linux NetHack-NetHack-3.6.4_Released.mod/sys/unix/hints/linux
--- NetHack-NetHack-3.6.4_Released/sys/unix/hints/linux 2019-12-18 22:29:40.000000000 +0200
+++ NetHack-NetHack-3.6.4_Released.mod/sys/unix/hints/linux 2020-01-13 15:33:51.932991035 +0200
@@ -10,7 +10,7 @@
#PREFIX=/usr
-PREFIX=$(wildcard ~)/nh/install
+#PREFIX=$(wildcard ~)/nh/install
+PREFIX=@TERMUX_PREFIX@
HACKDIR=$(PREFIX)/games/lib/$(GAME)dir
SHELLDIR = $(PREFIX)/games
INSTDIR=$(HACKDIR)
@@ -20,8 +21,8 @@
@@ -20,9 +20,9 @@
POSTINSTALL=cp -n sys/unix/sysconf $(INSTDIR)/sysconf; $(CHOWN) $(GAMEUID) $(INSTDIR)/sysconf; $(CHGRP) $(GAMEGRP) $(INSTDIR)/sysconf; chmod $(VARFILEPERM) $(INSTDIR)/sysconf;
-CFLAGS=-g -O -I../include -DNOTPARMDECL -DDLB
-CFLAGS=-g -O -I../include -DNOTPARMDECL
+CFLAGS+=-g -I../include -DNOTPARMDECL
CFLAGS+=-DDLB
-CFLAGS+=-DCOMPRESS=\"/bin/gzip\" -DCOMPRESS_EXTENSION=\".gz\"
+CFLAGS+= -g -O -I../include -DNOTPARMDECL -DDLB
+CFLAGS+=-DCOMPRESS=\"@TERMUX_PREFIX@/bin/applets/gzip\" -DCOMPRESS_EXTENSION=\".gz\"
+CFLAGS+=-DCOMPRESS=\"@TERMUX_PREFIX@/bin/gzip\" -DCOMPRESS_EXTENSION=\".gz\"
CFLAGS+=-DSYSCF -DSYSCF_FILE=\"$(HACKDIR)/sysconf\" -DSECURE
CFLAGS+=-DTIMED_DELAY
CFLAGS+=-DHACKDIR=\"$(HACKDIR)\"