diff --git a/packages/pick/build.sh b/packages/pick/build.sh index c21bd0898..7767a46e1 100644 --- a/packages/pick/build.sh +++ b/packages/pick/build.sh @@ -1,7 +1,7 @@ TERMUX_PKG_HOMEPAGE=https://github.com/calleerlandsson/pick TERMUX_PKG_DESCRIPTION="Utility to choose one option from a set of choices with fuzzy search functionality" -TERMUX_PKG_VERSION=1.8.0 -TERMUX_PKG_SHA256=7834d3aef9e575ce07414f961d1f024776b49bb23c5dc3b7bb8f6b734131067d +TERMUX_PKG_VERSION=1.9.0 +TERMUX_PKG_SHA256=97d3f310eb7de44fbe50ad3451c49d859d607fa14acd0c584aafae97eea65267 TERMUX_PKG_SRCURL=https://github.com/calleerlandsson/pick/releases/download/v${TERMUX_PKG_VERSION}/pick-${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_DEPENDS="ncurses" TERMUX_PKG_EXTRA_CONFIGURE_ARGS="ac_cv_search_setupterm=-lncurses" diff --git a/packages/pick/pick.c.patch b/packages/pick/pick.c.patch new file mode 100644 index 000000000..80af46609 --- /dev/null +++ b/packages/pick/pick.c.patch @@ -0,0 +1,14 @@ +diff -u -r ../pick-1.9.0/pick.c ./pick.c +--- ../pick-1.9.0/pick.c 2017-09-19 08:38:03.000000000 +0200 ++++ ./pick.c 2017-09-20 00:53:21.927992913 +0200 +@@ -33,6 +33,10 @@ + errx(1, #capability ": unknown terminfo capability"); \ + } while (0) + ++#ifndef CCEQ ++# define CCEQ(val, c) ((c) == (val) && (val) != _POSIX_VDISABLE) ++#endif ++ + enum key { + UNKNOWN, + ALT_ENTER,