From e1b065b04a4616222e1ba88c2bb77ed4782809eb Mon Sep 17 00:00:00 2001 From: Suhan G Paradkar <76830230+suhan-paradkar@users.noreply.github.com> Date: Wed, 19 May 2021 01:40:30 +0530 Subject: [PATCH] new package: libmatekbd (#322) --- x11-packages/libmatekbd/build.sh | 13 +++++++++++++ x11-packages/libmatekbd/genmarshal.patch | 24 ++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 x11-packages/libmatekbd/build.sh create mode 100644 x11-packages/libmatekbd/genmarshal.patch diff --git a/x11-packages/libmatekbd/build.sh b/x11-packages/libmatekbd/build.sh new file mode 100644 index 000000000..04e560e2f --- /dev/null +++ b/x11-packages/libmatekbd/build.sh @@ -0,0 +1,13 @@ +TERMUX_PKG_HOMEPAGE=https://libmatekbd.mate-desktop.dev/ +TERMUX_PKG_DESCRIPTION="libmatekbd is a fork of libgnomekbd" +TERMUX_PKG_LICENSE="LGPL-2.1" +TERMUX_PKG_VERSION=1.25.0 +TERMUX_PKG_SRCURL=https://github.com/mate-desktop/libmatekbd/releases/download/v$TERMUX_PKG_VERSION/libmatekbd-$TERMUX_PKG_VERSION.tar.xz +TERMUX_PKG_SHA256=0e0580370f29d867a11291805b2d39a0cd1951f84cda3f91cb9611f246a8e305 +TERMUX_PKG_DEPENDS="glib, gtk3, libxklavier" +TERMUX_PKG_EXTRA_CONFIGURE_ARGS="LIBXKLAVIER=${TERMUX_PREFIX}/lib/libxklavier.so" + +termux_step_pre_configure() { + export GLIB_COMPILE_RESOURCES="glib-compile-resources" + export GLIB_COMPILE_SCHEMAS="glib-compile-schemas" +} diff --git a/x11-packages/libmatekbd/genmarshal.patch b/x11-packages/libmatekbd/genmarshal.patch new file mode 100644 index 000000000..2447ebb3b --- /dev/null +++ b/x11-packages/libmatekbd/genmarshal.patch @@ -0,0 +1,24 @@ +diff '--color=auto' -uNr libmatekbd-1.25.0/libmatekbd/Makefile.am libmatekbd-1.25.0.mod/libmatekbd/Makefile.am +--- libmatekbd-1.25.0/libmatekbd/Makefile.am 2020-08-18 19:01:05.000000000 +0530 ++++ libmatekbd-1.25.0.mod/libmatekbd/Makefile.am 2021-05-18 17:58:05.559082493 +0530 +@@ -103,7 +103,7 @@ + + DISTCLEANFILES = $(gsettings_SCHEMAS) + +-GLIB_GENMARSHAL = $(shell pkg-config --variable=glib_genmarshal glib-2.0) ++GLIB_GENMARSHAL = glib-genmarshal + + matekbd-indicator-marshal.h: matekbd-indicator-marshal.list + $(AM_V_GEN)$(GLIB_GENMARSHAL) --prefix=matekbd_indicator $(srcdir)/matekbd-indicator-marshal.list --header > $@ +diff '--color=auto' -uNr libmatekbd-1.25.0/libmatekbd/Makefile.in libmatekbd-1.25.0.mod/libmatekbd/Makefile.in +--- libmatekbd-1.25.0/libmatekbd/Makefile.in 2020-08-18 19:03:11.000000000 +0530 ++++ libmatekbd-1.25.0.mod/libmatekbd/Makefile.in 2021-05-18 17:59:00.295082496 +0530 +@@ -531,7 +531,7 @@ + $(NULL) + + DISTCLEANFILES = $(gsettings_SCHEMAS) +-GLIB_GENMARSHAL = $(shell pkg-config --variable=glib_genmarshal glib-2.0) ++GLIB_GENMARSHAL = glib-genmarshal + INTROSPECTION_GIRS = Matekbd-1.0.gir + INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir) --warn-all + INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)