rgbds: update to 0.5.0

This commit is contained in:
Leonid Pliushch 2021-05-05 15:04:19 +00:00
parent 0133607378
commit 9a9bc46f21
No known key found for this signature in database
GPG Key ID: 45F2964132545795
2 changed files with 10 additions and 10 deletions

View File

@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://rgbds.gbdev.io
TERMUX_PKG_DESCRIPTION="Rednex Game Boy Development System - An assembly toolchain for the Nintendo Game Boy & Game Boy Color"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=0.4.2
TERMUX_PKG_VERSION=0.5.0
TERMUX_PKG_SRCURL=https://github.com/gbdev/rgbds/releases/download/v${TERMUX_PKG_VERSION}/rgbds-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=0bac46f0d3cfabf8683c62145b9f01a607c703295ef2978a3e548f106f50fac1
TERMUX_PKG_SHA256=56708515afafa8bf6e8e5aec398d23484859008da5714d2c160107626142964b
TERMUX_PKG_DEPENDS="libpng"

View File

@ -1,12 +1,12 @@
diff -uNr rgbds/src/extern/getopt.c rgbds.mod/src/extern/getopt.c
--- rgbds/src/extern/getopt.c 2020-04-03 14:52:29.000000000 +0300
+++ rgbds.mod/src/extern/getopt.c 2020-04-14 23:04:52.158998525 +0300
@@ -108,7 +108,7 @@
--- rgbds/src/extern/getopt.c 2021-03-20 00:41:50.000000000 +0000
+++ rgbds.mod/src/extern/getopt.c 2021-05-05 14:58:53.925498951 +0000
@@ -208,7 +208,7 @@
}
cnt++;
}
- if (cnt==1 && longonly && arg-start == mblen(start, MB_LEN_MAX)) {
+ if (cnt==1 && longonly && arg-start == mbtowc(0, start, MB_LEN_MAX)) {
int l = arg-start;
for (i=0; optstring[i]; i++) {
int j;
- if (cnt == 1 && longonly && arg - start == mblen(start, MB_LEN_MAX)) {
+ if (cnt == 1 && longonly && arg - start == mbtowc(0, start, MB_LEN_MAX)) {
int l = arg - start;
for (i = 0; optstring[i]; i++) {