From ec3365e240c7d0104571165721e4776f62182115 Mon Sep 17 00:00:00 2001 From: Suhan G Paradkar <76830230+suhan-paradkar@users.noreply.github.com> Date: Tue, 11 May 2021 16:45:10 +0530 Subject: [PATCH] new package: zenity (#316) --- x11-packages/zenity/Makefile.am.patch | 8 ++++++++ x11-packages/zenity/build.sh | 10 ++++++++++ x11-packages/zenity/main.c.patch | 11 +++++++++++ 3 files changed, 29 insertions(+) create mode 100644 x11-packages/zenity/Makefile.am.patch create mode 100644 x11-packages/zenity/build.sh create mode 100644 x11-packages/zenity/main.c.patch diff --git a/x11-packages/zenity/Makefile.am.patch b/x11-packages/zenity/Makefile.am.patch new file mode 100644 index 000000000..856034d62 --- /dev/null +++ b/x11-packages/zenity/Makefile.am.patch @@ -0,0 +1,8 @@ +diff '--color=auto' -uNr zenity-ZENITY_3_32_0/help/Makefile.am zenity-ZENITY_3_32_0.mod/help/Makefile.am +--- zenity-ZENITY_3_32_0/help/Makefile.am 2019-03-22 15:37:18.000000000 +0530 ++++ zenity-ZENITY_3_32_0.mod/help/Makefile.am 2021-05-11 10:14:01.874017794 +0530 +@@ -1,4 +1,3 @@ +-@YELP_HELP_RULES@ + + HELP_ID = zenity + diff --git a/x11-packages/zenity/build.sh b/x11-packages/zenity/build.sh new file mode 100644 index 000000000..617dda62d --- /dev/null +++ b/x11-packages/zenity/build.sh @@ -0,0 +1,10 @@ +TERMUX_PKG_HOMEPAGE=https://gitlab.gnome.org/GNOME/zenity +TERMUX_PKG_DESCRIPTION="a rewrite of gdialog, the GNOME port of dialog" +TERMUX_PKG_LICENSE="GPL-2.0" +TERMUX_PKG_VERSION=3.32.0 +TERMUX_PKG_SRCURL=https://download.gnome.org/sources/zenity/${TERMUX_PKG_VERSION:0:4}/zenity-$TERMUX_PKG_VERSION.tar.xz +TERMUX_PKG_SHA256=e786e733569c97372c3ef1776e71be7e7599ebe87e11e8ad67dcc2e63a82cd95 +TERMUX_PKG_DEPENDS="glib, gtk3" +termux_step_pre_configure() { + autoreconf -fi +} diff --git a/x11-packages/zenity/main.c.patch b/x11-packages/zenity/main.c.patch new file mode 100644 index 000000000..f6951295d --- /dev/null +++ b/x11-packages/zenity/main.c.patch @@ -0,0 +1,11 @@ +diff '--color=auto' -uNr zenity-ZENITY_3_32_0/src/main.c zenity-ZENITY_3_32_0.mod/src/main.c +--- zenity-ZENITY_3_32_0/src/main.c 2019-03-22 15:37:18.000000000 +0530 ++++ zenity-ZENITY_3_32_0.mod/src/main.c 2021-05-10 19:13:47.618026514 +0530 +@@ -44,7 +44,6 @@ + #endif + + bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR); +- bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); + textdomain (GETTEXT_PACKAGE); + + gtk_init (&argc, &argv);