Skip to content

Commit d7f7f3b

Browse files
committed
addpkg(x11/yad): 9.3
1 parent a1e590e commit d7f7f3b

File tree

4 files changed

+72
-1
lines changed

4 files changed

+72
-1
lines changed

x11-packages/gtksourceview3/build.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ TERMUX_PKG_LICENSE="LGPL-2.1"
44
TERMUX_PKG_MAINTAINER="@termux"
55
_MAJOR_VERSION=3.24
66
TERMUX_PKG_VERSION=${_MAJOR_VERSION}.11
7-
TERMUX_PKG_REVISION=2
87
TERMUX_PKG_SRCURL=https://download.gnome.org/sources/gtksourceview/${_MAJOR_VERSION}/gtksourceview-${TERMUX_PKG_VERSION}.tar.xz
98
TERMUX_PKG_SHA256=691b074a37b2a307f7f48edc5b8c7afa7301709be56378ccf9cc9735909077fd
109
TERMUX_PKG_DEPENDS="atk, gdk-pixbuf, glib, gtk3, harfbuzz, libcairo, libxml2, pango, zlib"
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
diff --git a/src/browser.c b/src/browser.c
2+
index d401e30..da80041 100644
3+
--- a/src/browser.c
4+
+++ b/src/browser.c
5+
@@ -18,6 +18,7 @@
6+
*/
7+
8+
#include <config.h>
9+
+#include <locale.h>
10+
11+
#include <gtk/gtk.h>
12+
#include <glib/gi18n.h>
13+
diff --git a/src/tools.c b/src/tools.c
14+
index 28d30f4..3a5cb6b 100644
15+
--- a/src/tools.c
16+
+++ b/src/tools.c
17+
@@ -18,6 +18,7 @@
18+
*/
19+
20+
#include <config.h>
21+
+#include <locale.h>
22+
23+
#include <gtk/gtk.h>
24+
#include <glib/gi18n.h>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
diff -Nrup -U 4 yad-7.3/src/main.c yad-7.3-OK/src/main.c
2+
--- yad-7.3/src/main.c 2020-11-01 01:11:21.039606281 +0300
3+
+++ yad-7.3-OK/src/main.c 2020-11-01 01:08:25.420968575 +0300
4+
@@ -536,8 +536,13 @@ create_dialog (void)
5+
6+
/* parse geometry or move window, if given. must be after showing widget */
7+
if (!options.data.maximized && !options.data.fullscreen)
8+
{
9+
+ gint mw, nw;
10+
+
11+
+ gtk_widget_get_preferred_width (dlg, &mw, &nw);
12+
+ gtk_widget_set_size_request (dlg, nw, -1);
13+
+
14+
parse_geometry ();
15+
g_signal_connect (G_OBJECT (dlg), "realize", G_CALLBACK (realize_cb), NULL);
16+
gtk_widget_show_all (dlg);
17+
}
18+

x11-packages/yad/build.sh

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
TERMUX_PKG_HOMEPAGE=http://sourceforge.net/projects/yad-dialog/
2+
TERMUX_PKG_DESCRIPTION="Display graphical dialogs from shell scripts or command line"
3+
TERMUX_PKG_LICENSE="GPL-3.0"
4+
TERMUX_PKG_MAINTAINER="@termux"
5+
TERMUX_PKG_VERSION=9.3
6+
TERMUX_PKG_SRCURL=https://github.com/v1cont/yad/releases/download/v${TERMUX_PKG_VERSION}/yad-${TERMUX_PKG_VERSION}.tar.xz
7+
TERMUX_PKG_SHA256=d5ca05d7658ac45490f1b49e15d24acd2c2011d88dab3f8dab0431ae9f493319
8+
TERMUX_PKG_DEPENDS="gtk3, webkit2gtk-4.1, gtksourceview3, gspell"
9+
TERMUX_PKG_BUILD_DEPENDS="libxml2-utils"
10+
TERMUX_PKG_BUILD_IN_SRC=true
11+
12+
termux_step_pre_configure() {
13+
export LDFLAGS="${LDFLAGS} -landroid-shmem"
14+
}
15+
16+
termux_step_post_make_install() {
17+
# Remove pfd binary if it exists
18+
rm -f "$TERMUX_PREFIX/bin/pfd"
19+
20+
# Remove encoding key from desktop file if it exists
21+
if [ -f "$TERMUX_PREFIX/share/applications/yad-icon-browser.desktop" ]; then
22+
# Encoding key in group "Desktop Entry" is deprecated.
23+
# Place the menu entry for yad-icon-browser under "Utilities".
24+
desktop-file-install --remove-key Encoding \
25+
--remove-category Development \
26+
--add-category Utility \
27+
--dir="$TERMUX_PREFIX"/share/applications \
28+
"$TERMUX_PREFIX"/share/applications/yad-icon-browser.desktop
29+
fi
30+
}

0 commit comments

Comments
 (0)