Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
angband: Update from 4.0.5 to 4.1.0
  • Loading branch information
fornwall committed Jul 16, 2017
1 parent 4739690 commit d53bcc5
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/angband/build.sh
@@ -1,12 +1,13 @@
TERMUX_PKG_HOMEPAGE=http://rephial.org/
TERMUX_PKG_DESCRIPTION="Dungeon exploration adventure game"
TERMUX_PKG_VERSION=4.0.5
TERMUX_PKG_SRCURL=http://rephial.org/downloads/4.0/angband-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=0d769a0f349842b0c78cbcd1804a9e08f064e75ca26b957710e4c2a3eb14f852
TERMUX_PKG_DEPENDS="libandroid-support, ncurses"
TERMUX_PKG_VERSION=4.1.0
TERMUX_PKG_SRCURL=http://rephial.org/downloads/4.1/angband-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=ea52266e52b66d6bf2ab3728b3bc6c7c3875130973430021e31bf56000c0df8b
TERMUX_PKG_DEPENDS="ncurses"
TERMUX_PKG_BUILD_IN_SRC=yes
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-x11 --bindir=$TERMUX_PREFIX/bin --sysconfdir=$TERMUX_PREFIX/share/angband"
TERMUX_PKG_RM_AFTER_INSTALL="share/angband/xtra share/angband/icons"
TERMUX_PKG_FOLDERNAME=angband-master

termux_step_pre_configure () {
./autogen.sh
Expand Down
25 changes: 25 additions & 0 deletions packages/angband/src-main.c.patch
@@ -0,0 +1,25 @@
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
*/
#include "locale.h"
+#ifndef __ANDROID__
#include "langinfo.h"
+#endif

/**
* Some machines have a "main()" function in their "main-xxx.c" file,
@@ -466,9 +468,11 @@
ANGBAND_SYS = mstr;

if (setlocale(LC_CTYPE, "")) {
+#ifndef __ANDROID__
/* Require UTF-8 */
if (strcmp(nl_langinfo(CODESET), "UTF-8") != 0)
quit("Angband requires UTF-8 support");
+#endif
}

/* Try the modules in the order specified by modules[] */

0 comments on commit d53bcc5

Please sign in to comment.