From 9a9bc46f21bd79ec1846eaab226e5c1007601545 Mon Sep 17 00:00:00 2001 From: Leonid Pliushch Date: Wed, 5 May 2021 15:04:19 +0000 Subject: [PATCH] rgbds: update to 0.5.0 --- packages/rgbds/build.sh | 4 ++-- packages/rgbds/src-extern-getopt.c.patch | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/rgbds/build.sh b/packages/rgbds/build.sh index 146b670b0..c7a1a1514 100644 --- a/packages/rgbds/build.sh +++ b/packages/rgbds/build.sh @@ -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" diff --git a/packages/rgbds/src-extern-getopt.c.patch b/packages/rgbds/src-extern-getopt.c.patch index 7dcf207a6..1eac692a7 100644 --- a/packages/rgbds/src-extern-getopt.c.patch +++ b/packages/rgbds/src-extern-getopt.c.patch @@ -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++) {