From 56f61710d9970bf4c0b7b788780d05f6b3ba9e80 Mon Sep 17 00:00:00 2001 From: Leonid Pliushch Date: Mon, 12 Aug 2019 19:46:12 +0300 Subject: [PATCH] add thunar, libexo, libxfce4ui, libxfce4util, xfconf --- x11-packages/libexo/Makefile.in.patch | 12 ++++++++++++ x11-packages/libexo/build.sh | 9 +++++++++ x11-packages/libexo/configure.patch | 17 +++++++++++++++++ .../libexo/dont-update-icon-cache.patch | 11 +++++++++++ ...exohelper-helper-x-filer.desktop.in.in.patch | 10 ++++++++++ x11-packages/libxfce4ui/build.sh | 12 ++++++++++++ .../libxfce4ui/dont-update-icon-cache.patch | 11 +++++++++++ x11-packages/libxfce4util/build.sh | 8 ++++++++ x11-packages/libxfce4util/xfce-resource.c.patch | 11 +++++++++++ x11-packages/thunar/build.sh | 17 +++++++++++++++++ .../thunar/dont-update-icon-cache.patch | 11 +++++++++++ .../plugins-thunar-sendto-email-main.c.patch | 11 +++++++++++ x11-packages/xfconf/build.sh | 8 ++++++++ 13 files changed, 148 insertions(+) create mode 100644 x11-packages/libexo/Makefile.in.patch create mode 100644 x11-packages/libexo/build.sh create mode 100644 x11-packages/libexo/configure.patch create mode 100644 x11-packages/libexo/dont-update-icon-cache.patch create mode 100644 x11-packages/libexo/exohelper-helper-x-filer.desktop.in.in.patch create mode 100644 x11-packages/libxfce4ui/build.sh create mode 100644 x11-packages/libxfce4ui/dont-update-icon-cache.patch create mode 100644 x11-packages/libxfce4util/build.sh create mode 100644 x11-packages/libxfce4util/xfce-resource.c.patch create mode 100644 x11-packages/thunar/build.sh create mode 100644 x11-packages/thunar/dont-update-icon-cache.patch create mode 100644 x11-packages/thunar/plugins-thunar-sendto-email-main.c.patch create mode 100644 x11-packages/xfconf/build.sh diff --git a/x11-packages/libexo/Makefile.in.patch b/x11-packages/libexo/Makefile.in.patch new file mode 100644 index 000000000..8f9182007 --- /dev/null +++ b/x11-packages/libexo/Makefile.in.patch @@ -0,0 +1,12 @@ +--- ./Makefile.in.orig 2019-08-12 14:38:32.247789398 +0300 ++++ ./Makefile.in 2019-08-12 14:38:42.392079673 +0300 +@@ -426,8 +426,7 @@ + docs \ + icons \ + pixmaps \ +- po \ +- tests ++ po + + distuninstallcheck_listfiles = \ + find . -type f -print | grep -v ./share/icons/hicolor/icon-theme.cache diff --git a/x11-packages/libexo/build.sh b/x11-packages/libexo/build.sh new file mode 100644 index 000000000..20f37599d --- /dev/null +++ b/x11-packages/libexo/build.sh @@ -0,0 +1,9 @@ +TERMUX_PKG_HOMEPAGE=http://www.xfce.org/ +TERMUX_PKG_DESCRIPTION="Exo is a support library used in the Xfce desktop. It also has some helper applications that are used throughout Xfce." +TERMUX_PKG_VERSION=0.12.8 +TERMUX_PKG_LICENSE="GPL-2.0" +TERMUX_PKG_MAINTAINER="Leonid Plyushch " +TERMUX_PKG_SRCURL=http://archive.xfce.org/src/xfce/exo/0.12/exo-${TERMUX_PKG_VERSION}.tar.bz2 +TERMUX_PKG_SHA256=3400a2e64aa41ede25bedaca4909bde7ea4f8698d9598d1b80f02a40ac89fcde +TERMUX_PKG_DEPENDS="gtk3, libxfce4ui, libxfce4util" +TERMUX_PKG_RM_AFTER_INSTALL="share/icons/hicolor/icon-theme.cache" diff --git a/x11-packages/libexo/configure.patch b/x11-packages/libexo/configure.patch new file mode 100644 index 000000000..17acfc2b7 --- /dev/null +++ b/x11-packages/libexo/configure.patch @@ -0,0 +1,17 @@ +--- ./configure.orig 2019-08-12 14:34:22.356533317 +0300 ++++ ./configure 2019-08-12 14:34:50.609365517 +0300 +@@ -14415,10 +14415,10 @@ + + + if test "$cross_compiling" = yes; then : +- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +-as_fn_error $? "cannot run test program while cross compiling +-See \`config.log' for more details" "$LINENO" 5; } ++# { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 ++#$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} ++#as_fn_error $? "cannot run test program while cross compiling ++#See \`config.log' for more details" "$LINENO" 5; } + else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ diff --git a/x11-packages/libexo/dont-update-icon-cache.patch b/x11-packages/libexo/dont-update-icon-cache.patch new file mode 100644 index 000000000..2a5e1520e --- /dev/null +++ b/x11-packages/libexo/dont-update-icon-cache.patch @@ -0,0 +1,11 @@ +--- ./icons/Makefile.in.orig 2019-08-12 15:17:37.360166290 +0300 ++++ ./icons/Makefile.in 2019-08-12 15:17:49.448494012 +0300 +@@ -398,7 +398,7 @@ + 24x24 \ + 48x48 + +-gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor ++gtk_update_icon_cache = true + all: all-recursive + + .SUFFIXES: diff --git a/x11-packages/libexo/exohelper-helper-x-filer.desktop.in.in.patch b/x11-packages/libexo/exohelper-helper-x-filer.desktop.in.in.patch new file mode 100644 index 000000000..e52fdb05d --- /dev/null +++ b/x11-packages/libexo/exohelper-helper-x-filer.desktop.in.in.patch @@ -0,0 +1,10 @@ +--- exo-0.12.3/exo-helper/helpers/rox-filer.desktop.in.in ++++ exo/exo-helper/helpers/rox-filer.desktop.in.in +@@ -1,6 +1,6 @@ + [Desktop Entry] + Version=1.0 +-Icon=/usr/libexec/ROX-Filer/.DirIcon ++Icon=/data/data/com.termux/files/usr/libexec/ROX-Filer/.DirIcon + Type=X-XFCE-Helper + _Name=ROX-Filer + StartupNotify=true diff --git a/x11-packages/libxfce4ui/build.sh b/x11-packages/libxfce4ui/build.sh new file mode 100644 index 000000000..0c04518a6 --- /dev/null +++ b/x11-packages/libxfce4ui/build.sh @@ -0,0 +1,12 @@ +TERMUX_PKG_HOMEPAGE=http://www.xfce.org/ +TERMUX_PKG_DESCRIPTION="The libxfce4ui package contains GTK+ 2 widgets that are used by other Xfce applications." +TERMUX_PKG_VERSION=4.14.1 +TERMUX_PKG_LICENSE="GPL-2.0" +TERMUX_PKG_MAINTAINER="Leonid Plyushch " +TERMUX_PKG_SRCURL=http://archive.xfce.org/src/xfce/libxfce4ui/4.14/libxfce4ui-${TERMUX_PKG_VERSION}.tar.bz2 +TERMUX_PKG_SHA256=c449075eaeae4d1138d22eeed3d2ad7032b87fb8878eada9b770325bed87f2da +TERMUX_PKG_DEPENDS="xfconf, gtk2, gtk3, startup-notification" +TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" +--enable-gtk3 +--with-vendor-info=Termux +" diff --git a/x11-packages/libxfce4ui/dont-update-icon-cache.patch b/x11-packages/libxfce4ui/dont-update-icon-cache.patch new file mode 100644 index 000000000..5861e16d3 --- /dev/null +++ b/x11-packages/libxfce4ui/dont-update-icon-cache.patch @@ -0,0 +1,11 @@ +--- libxfce4ui-4.12.1/icons/Makefile.in 2015-03-15 23:44:47.000000000 +0530 ++++ libxfce4ui/icons/Makefile.in 2019-02-02 11:34:20.143610388 +0530 +@@ -387,7 +387,7 @@ + SUBDIRS = \ + 48x48 + +-gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor ++gtk_update_icon_cache = true + all: all-recursive + + .SUFFIXES: diff --git a/x11-packages/libxfce4util/build.sh b/x11-packages/libxfce4util/build.sh new file mode 100644 index 000000000..d4dc54f43 --- /dev/null +++ b/x11-packages/libxfce4util/build.sh @@ -0,0 +1,8 @@ +TERMUX_PKG_HOMEPAGE=https://git.xfce.org/xfce/libxfce4util/tree/README +TERMUX_PKG_DESCRIPTION="The libxfce4util package is a basic utility library for the Xfce desktop environment." +TERMUX_PKG_VERSION=4.14.0 +TERMUX_PKG_LICENSE="GPL-2.0" +TERMUX_PKG_MAINTAINER="Leonid Plyushch " +TERMUX_PKG_SRCURL=http://archive.xfce.org/src/xfce/libxfce4util/4.14/libxfce4util-${TERMUX_PKG_VERSION}.tar.bz2 +TERMUX_PKG_SHA256=32ad79b7992ec3fd863e8ff2f03eebda8740363ef9d7d910a35963ac1c1a6324 +TERMUX_PKG_DEPENDS="glib" diff --git a/x11-packages/libxfce4util/xfce-resource.c.patch b/x11-packages/libxfce4util/xfce-resource.c.patch new file mode 100644 index 000000000..68a78faf2 --- /dev/null +++ b/x11-packages/libxfce4util/xfce-resource.c.patch @@ -0,0 +1,11 @@ +--- ./libxfce4util/xfce-resource.c.orig 2019-08-12 14:15:26.501641249 +0300 ++++ ./libxfce4util/xfce-resource.c 2019-08-12 14:16:28.459295710 +0300 +@@ -248,7 +248,7 @@ + } + + /* XDG fallback */ +- _list[XFCE_RESOURCE_ICONS] = g_slist_append (_list[XFCE_RESOURCE_ICONS], "/usr/share/pixmaps"); ++ _list[XFCE_RESOURCE_ICONS] = g_slist_append (_list[XFCE_RESOURCE_ICONS], "@TERMUX_PREFIX@/share/pixmaps"); + + /* fallback for system which that don't install everything in /usr */ + _list[XFCE_RESOURCE_ICONS] = g_slist_append (_list[XFCE_RESOURCE_ICONS], "/usr/local/share/pixmaps"); diff --git a/x11-packages/thunar/build.sh b/x11-packages/thunar/build.sh new file mode 100644 index 000000000..44f92a444 --- /dev/null +++ b/x11-packages/thunar/build.sh @@ -0,0 +1,17 @@ +TERMUX_PKG_HOMEPAGE=http://thunar.xfce.org +TERMUX_PKG_DESCRIPTION="Modern file manager for Xfce" +TERMUX_PKG_VERSION=1.8.9 +TERMUX_PKG_LICENSE="GPL-2.0" +TERMUX_PKG_MAINTAINER="Leonid Plyushch " +TERMUX_PKG_SRCURL=http://archive.xfce.org/src/xfce/thunar/1.8/Thunar-$TERMUX_PKG_VERSION.tar.bz2 +TERMUX_PKG_SHA256=7a758e7ac03501c520c304f8845353315c954d429b17d591b8eea8b14f1350b9 +TERMUX_PKG_DEPENDS="libandroid-shmem, libxfce4ui, libexo, hicolor-icon-theme, libexif, libnotify, libpng" + +termux_step_create_debscripts () { + cat > postinst <