From 35f6b32a7398eb4e536bd3d5407087b6d5095287 Mon Sep 17 00:00:00 2001 From: Leonid Pliushch Date: Fri, 5 Oct 2018 22:24:55 +0300 Subject: [PATCH] new package: uget - download manager featuring download classification and HTML import --- x11-packages/libnotify/build.sh | 8 +++ x11-packages/uget/build.sh | 17 ++++++ x11-packages/uget/uget-2.2.1_configure.patch | 59 ++++++++++++++++++++ 3 files changed, 84 insertions(+) create mode 100644 x11-packages/libnotify/build.sh create mode 100644 x11-packages/uget/build.sh create mode 100644 x11-packages/uget/uget-2.2.1_configure.patch diff --git a/x11-packages/libnotify/build.sh b/x11-packages/libnotify/build.sh new file mode 100644 index 000000000..c870f7fdd --- /dev/null +++ b/x11-packages/libnotify/build.sh @@ -0,0 +1,8 @@ +TERMUX_PKG_MAINTAINER="Leonid Plyushch @xeffyr" + +TERMUX_PKG_HOMEPAGE=https://developer.gnome.org/notification-spec/ +TERMUX_PKG_DESCRIPTION="Library for sending desktop notifications" +TERMUX_PKG_VERSION=0.7.7 +TERMUX_PKG_SRCURL=http://ftp.gnome.org/pub/gnome/sources/libnotify/0.7/libnotify-${TERMUX_PKG_VERSION}.tar.xz +TERMUX_PKG_SHA256=9cb4ce315b2655860c524d46b56010874214ec27e854086c1a1d0260137efc04 +TERMUX_PKG_DEPENDS="gdk-pixbuf, glib" diff --git a/x11-packages/uget/build.sh b/x11-packages/uget/build.sh new file mode 100644 index 000000000..84cc4d7e0 --- /dev/null +++ b/x11-packages/uget/build.sh @@ -0,0 +1,17 @@ +TERMUX_PKG_MAINTAINER="Leonid Plyushch @xeffyr" + +TERMUX_PKG_HOMEPAGE=http://ugetdm.com/ +TERMUX_PKG_DESCRIPTION="GTK+ download manager featuring download classification and HTML import" +TERMUX_PKG_VERSION=2.2.1 +TERMUX_PKG_SRCURL=https://downloads.sourceforge.net/urlget/uget-${TERMUX_PKG_VERSION}.tar.gz +TERMUX_PKG_SHA256=445cf58799a9a06e08cd4180b172f4b0a8a8c2ee82da732bdfe2dd502d949936 +TERMUX_PKG_DEPENDS="atk, gdk-pixbuf, glib, gstreamer, gtk3, libandroid-shmem, libcairo-x, libcurl, libnotify, openssl, pango-x" +TERMUX_PKG_RM_AFTER_INSTALL="lib/locale" + +termux_step_pre_configure() { + export LIBS="-landroid-shmem" +} + +termux_step_post_make_install() { + ln -sfr "${TERMUX_PREFIX}/bin/uget-gtk" "${TERMUX_PREFIX}/bin/uget" +} diff --git a/x11-packages/uget/uget-2.2.1_configure.patch b/x11-packages/uget/uget-2.2.1_configure.patch new file mode 100644 index 000000000..a3eb90f09 --- /dev/null +++ b/x11-packages/uget/uget-2.2.1_configure.patch @@ -0,0 +1,59 @@ +diff -uNr uget-2.2.1/configure uget-2.2.1.mod/configure +--- uget-2.2.1/configure 2018-03-08 16:43:30.000000000 +0200 ++++ uget-2.2.1.mod/configure 2018-10-05 22:03:29.217753571 +0300 +@@ -6315,55 +6315,6 @@ + + fi + +-## ---------------- +-## pthread +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 +-$as_echo_n "checking for pthread_create in -lpthread... " >&6; } +-if ${ac_cv_lib_pthread_pthread_create+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- ac_check_lib_save_LIBS=$LIBS +-LIBS="-lpthread $LIBS" +-cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +-/* Override any GCC internal prototype to avoid an error. +- Use char because int might match the return type of a GCC +- builtin and then its argument prototype would still apply. */ +-#ifdef __cplusplus +-extern "C" +-#endif +-char pthread_create (); +-int +-main () +-{ +-return pthread_create (); +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_link "$LINENO"; then : +- ac_cv_lib_pthread_pthread_create=yes +-else +- ac_cv_lib_pthread_pthread_create=no +-fi +-rm -f core conftest.err conftest.$ac_objext \ +- conftest$ac_exeext conftest.$ac_ext +-LIBS=$ac_check_lib_save_LIBS +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 +-$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } +-if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then : +- cat >>confdefs.h <<_ACEOF +-#define HAVE_LIBPTHREAD 1 +-_ACEOF +- +- LIBS="-lpthread $LIBS" +- +-else +- as_fn_error $? "required library pthread missing" "$LINENO" 5 +-fi +- + PTHREAD_CFLAGS="-pthread" + PTHREAD_LIBS="-pthread" +