From 9fdd035ca41526110b6cb0e74d05ef7b13b62bb3 Mon Sep 17 00:00:00 2001 From: Leonid Plyushch Date: Mon, 18 Nov 2019 21:37:53 +0200 Subject: [PATCH] move from unstable: progress --- packages/progress/Makefile.patch | 10 ++++++++++ packages/progress/WithoutWordexp.patch | 24 ++++++++++++++++++++++++ packages/progress/build.sh | 11 +++++++++++ 3 files changed, 45 insertions(+) create mode 100644 packages/progress/Makefile.patch create mode 100644 packages/progress/WithoutWordexp.patch create mode 100644 packages/progress/build.sh diff --git a/packages/progress/Makefile.patch b/packages/progress/Makefile.patch new file mode 100644 index 000000000..fd1d7cc6e --- /dev/null +++ b/packages/progress/Makefile.patch @@ -0,0 +1,10 @@ +--- progress/Makefile 2019-09-06 19:43:06.150151728 +0800 ++++ progress_mod/Makefile 2019-09-07 13:12:22.559267641 +0800 +@@ -12,6 +12,7 @@ + $(error "ncurses package not found") + endif + override LDFLAGS += $(shell $(PKG_CONFIG) ncurses --libs) ++ override CFLAGS += $(shell $(PKG_CONFIG) ncurses --cflags) + endif + ifeq ($(UNAME), Darwin) + override LDFLAGS += -lncurses diff --git a/packages/progress/WithoutWordexp.patch b/packages/progress/WithoutWordexp.patch new file mode 100644 index 000000000..9fde3bfca --- /dev/null +++ b/packages/progress/WithoutWordexp.patch @@ -0,0 +1,24 @@ +--- progress/progress.c 2019-09-06 19:43:06.150151728 +0800 ++++ progress_mod/progress.c 2019-09-08 10:27:05.529574702 +0800 +@@ -32,7 +32,20 @@ + #include + #include + +-#include ++/* ++*#include ++*Android without wordexp support ++*/ ++typedef struct { ++ size_t we_wordc; ++ char **we_wordv; ++ size_t we_offs; ++} wordexp_t; ++static inline int wordexp(const char *c, wordexp_t *w, int _i) ++{ ++ return -1; ++} ++ + #include + + #include diff --git a/packages/progress/build.sh b/packages/progress/build.sh new file mode 100644 index 000000000..c3388c6bf --- /dev/null +++ b/packages/progress/build.sh @@ -0,0 +1,11 @@ +TERMUX_PKG_HOMEPAGE=https://github.com/Xfennec/progress +TERMUX_PKG_DESCRIPTION="Linux tool to show progress for cp, mv, dd and more" +TERMUX_PKG_LICENSE="GPL-3.0" +TERMUX_PKG_MAINTAINER="Leonid Plyushch " +TERMUX_PKG_VERSION=0.14 +TERMUX_PKG_REVISION=3 +TERMUX_PKG_SRCURL=https://github.com/Xfennec/progress/archive/v$TERMUX_PKG_VERSION.tar.gz +TERMUX_PKG_SHA256=214a0d84b3ee5dde57ec9952ec9aa68ad9261fb336ef025324b344ed7ab48af1 +TERMUX_PKG_DEPENDS="ncurses" +TERMUX_PKG_BUILD_IN_SRC=true +