angband: update to 4.2.1

This commit is contained in:
Henrik Grimler 2020-06-23 21:22:26 +02:00
parent e3f5f5289d
commit 19aac33ff5
2 changed files with 12 additions and 14 deletions

View File

@ -1,8 +1,8 @@
TERMUX_PKG_HOMEPAGE=http://rephial.org/
TERMUX_PKG_DESCRIPTION="Dungeon exploration adventure game"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_VERSION=4.2.0
TERMUX_PKG_SHA256=d3e1495c7cc2a4ee66de7b4e612d3b133048072e37504bd2e58a2351ab0fb56d
TERMUX_PKG_VERSION=4.2.1
TERMUX_PKG_SHA256=acd735c9d46bf86ee14337c71c56f743ad13ec2a95d62e7115604621e7560d0f
TERMUX_PKG_SRCURL=http://rephial.org/downloads/${TERMUX_PKG_VERSION:0:3}/angband-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_DEPENDS="ncurses"
TERMUX_PKG_BUILD_IN_SRC=true

View File

@ -1,19 +1,17 @@
diff -u -r ../angband-master/src/main.c ./src/main.c
--- ../angband-master/src/main.c 2017-06-25 04:10:53.000000000 +0000
+++ ./src/main.c 2017-07-16 16:38:58.187988465 +0000
@@ -35,7 +35,9 @@
* locale junk
--- ./src/main.c.orig 2020-06-03 11:09:59.000000000 +0200
+++ ./src/main.c 2020-06-23 21:18:19.236966219 +0200
@@ -36,7 +36,7 @@
*/
#include "locale.h"
+#ifndef __ANDROID__
-#if !defined(WINDOWS)
+#if !defined(WINDOWS) && !defined(__ANDROID__)
#include "langinfo.h"
+#endif
#endif
/**
* Some machines have a "main()" function in their "main-xxx.c" file,
@@ -466,9 +468,11 @@
@@ -474,9 +474,11 @@
ANGBAND_SYS = mstr;
#if !defined(WINDOWS)
if (setlocale(LC_CTYPE, "")) {
+#ifndef __ANDROID__
/* Require UTF-8 */
@ -21,5 +19,5 @@ diff -u -r ../angband-master/src/main.c ./src/main.c
quit("Angband requires UTF-8 support");
+#endif
}
#endif
/* Try the modules in the order specified by modules[] */