From bde14bf9cc99dc367e4a3cb45dd28b8fc81c06f4 Mon Sep 17 00:00:00 2001 From: Tristan Ross Date: Sat, 13 Jul 2019 08:49:02 -0700 Subject: [PATCH] add dbus-glib and telepathy-glib (#4046) --- packages/dbus-glib/build.sh | 21 +++++++++++++++++ packages/dbus-glib/glib-genmarshal-fix.patch | 24 ++++++++++++++++++++ packages/telepathy-glib/build.sh | 9 ++++++++ packages/telepathy-glib/configure.patch | 16 +++++++++++++ 4 files changed, 70 insertions(+) create mode 100644 packages/dbus-glib/build.sh create mode 100644 packages/dbus-glib/glib-genmarshal-fix.patch create mode 100644 packages/telepathy-glib/build.sh create mode 100644 packages/telepathy-glib/configure.patch diff --git a/packages/dbus-glib/build.sh b/packages/dbus-glib/build.sh new file mode 100644 index 000000000..5ef1d4dba --- /dev/null +++ b/packages/dbus-glib/build.sh @@ -0,0 +1,21 @@ +TERMUX_PKG_HOMEPAGE=https://dbus.freedesktop.org +TERMUX_PKG_DESCRIPTION="GLib bindings for DBUS" +TERMUX_PKG_LICENSE="GPL-2.0" +TERMUX_PKG_MAINTAINER="Tristan Ross " +TERMUX_PKG_VERSION=0.110 +TERMUX_PKG_REVISION=1 +TERMUX_PKG_SRCURL="https://dbus.freedesktop.org/releases/dbus-glib/dbus-glib-$TERMUX_PKG_VERSION.tar.gz" +TERMUX_PKG_SHA256=7ce4760cf66c69148f6bd6c92feaabb8812dee30846b24cd0f7395c436d7e825 +TERMUX_PKG_DEPENDS="dbus, glib" +TERMUX_PKG_HOSTBUILD=true + +termux_step_host_build() { + (cd $TERMUX_PKG_SRCDIR && autoconf -i) + $TERMUX_PKG_SRCDIR/configure + make -j $TERMUX_MAKE_PROCESSES +} + +termux_step_pre_configure() { + autoconf -i + TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --with-dbus-binding-tool=$TERMUX_PKG_HOSTBUILD_DIR/dbus/dbus-binding-tool" +} diff --git a/packages/dbus-glib/glib-genmarshal-fix.patch b/packages/dbus-glib/glib-genmarshal-fix.patch new file mode 100644 index 000000000..7b0c71bf7 --- /dev/null +++ b/packages/dbus-glib/glib-genmarshal-fix.patch @@ -0,0 +1,24 @@ +diff -uNr dbus-glib-0.110/configure dbus-glib-0.110.mod/configure +--- dbus-glib-0.110/configure 2018-01-29 14:42:36.000000000 +0200 ++++ dbus-glib-0.110.mod/configure 2019-07-13 17:05:40.542291530 +0300 +@@ -12922,7 +12922,7 @@ + + fi + +-GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0` ++GLIB_GENMARSHAL=glib-genmarshal + + + +diff -uNr dbus-glib-0.110/configure.ac dbus-glib-0.110.mod/configure.ac +--- dbus-glib-0.110/configure.ac 2018-01-29 14:42:18.000000000 +0200 ++++ dbus-glib-0.110.mod/configure.ac 2019-07-13 17:04:09.085145079 +0300 +@@ -265,7 +265,7 @@ + [Warn on use of APIs deprecated before GLib 2.32]) + PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.40, gobject-2.0 >= 2.40, gio-2.0 >= 2.40]) + +-GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0` ++GLIB_GENMARSHAL=glib-genmarshal + AC_SUBST(GLIB_GENMARSHAL) + + dnl GLib flags diff --git a/packages/telepathy-glib/build.sh b/packages/telepathy-glib/build.sh new file mode 100644 index 000000000..53428e703 --- /dev/null +++ b/packages/telepathy-glib/build.sh @@ -0,0 +1,9 @@ +TERMUX_PKG_HOMEPAGE=http://telepathy.freedesktop.org/ +TERMUX_PKG_DESCRIPTION="GLib bindings for the Telepathy D-Bus protocol" +TERMUX_PKG_LICENSE="LGPL-2.1" +TERMUX_PKG_MAINTAINER="Tristan Ross " +TERMUX_PKG_VERSION=0.24.1 +TERMUX_PKG_SRCURL=https://telepathy.freedesktop.org/releases/telepathy-glib/telepathy-glib-$TERMUX_PKG_VERSION.tar.gz +TERMUX_PKG_SHA256=9e0df1d8f857e0270cf0b32e2d1ca5a24aa7282873361785d573f72ad7f7d5eb +TERMUX_PKG_DEPENDS="dbus-glib" +TERMUX_PKG_BUILD_IN_SRC=true diff --git a/packages/telepathy-glib/configure.patch b/packages/telepathy-glib/configure.patch new file mode 100644 index 000000000..a09f8eb43 --- /dev/null +++ b/packages/telepathy-glib/configure.patch @@ -0,0 +1,16 @@ +diff -uNr telepathy-glib-0.24.1/configure telepathy-glib-0.24.1.mod/configure +--- telepathy-glib-0.24.1/configure 2014-08-25 15:30:45.000000000 +0300 ++++ telepathy-glib-0.24.1.mod/configure 2019-07-13 18:01:59.342405992 +0300 +@@ -13298,10 +13298,10 @@ + + + +-GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0` ++GLIB_GENMARSHAL=glib-genmarshal + + +-GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0` ++GLIB_MKENUMS=glib-mkenums + + +