angband: update to 4.2.3

This commit is contained in:
Henrik Grimler 2021-09-10 09:33:01 +02:00
parent 1a1b9817a7
commit fa2817acee
2 changed files with 6 additions and 6 deletions

View File

@ -2,8 +2,8 @@ TERMUX_PKG_HOMEPAGE=http://rephial.org/
TERMUX_PKG_DESCRIPTION="Dungeon exploration adventure game"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=4.2.2
TERMUX_PKG_SHA256=433efe76a4a2741439542235316c098740aa4a72e4245523eb4781345a112d70
TERMUX_PKG_VERSION=4.2.3
TERMUX_PKG_SHA256=f001299283fb8a81865e07983d54cf04cd0f9addfeb7daeef75ed60f6ca417ff
TERMUX_PKG_SRCURL=https://github.com/angband/angband/archive/refs/tags/${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_DEPENDS="ncurses"
TERMUX_PKG_BUILD_IN_SRC=true

View File

@ -1,5 +1,5 @@
--- ./src/main.c.orig 2020-06-03 11:09:59.000000000 +0200
+++ ./src/main.c 2020-06-23 21:18:19.236966219 +0200
--- ./src/main.c.orig 2021-08-01 00:28:01.000000000 +0200
+++ ./src/main.c 2021-09-10 09:34:27.031713786 +0200
@@ -36,7 +36,7 @@
*/
#include "locale.h"
@ -9,13 +9,13 @@
#include "langinfo.h"
#endif
@@ -474,9 +474,11 @@
@@ -497,9 +497,11 @@
ANGBAND_SYS = mstr;
#if !defined(WINDOWS)
if (setlocale(LC_CTYPE, "")) {
+#ifndef __ANDROID__
/* Require UTF-8 */
if (strcmp(nl_langinfo(CODESET), "UTF-8") != 0)
if (!streq(nl_langinfo(CODESET), "UTF-8"))
quit("Angband requires UTF-8 support");
+#endif
}