From 490713f24cfd1e0811eecf79624664e88b2fd5a2 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Fri, 28 Sep 2018 19:00:11 +0200 Subject: [PATCH] nnn: Minor polish --- packages/nnn/build.sh | 11 +++-------- packages/nnn/nnn.c.patch | 13 +++++++++++++ 2 files changed, 16 insertions(+), 8 deletions(-) create mode 100644 packages/nnn/nnn.c.patch diff --git a/packages/nnn/build.sh b/packages/nnn/build.sh index 0f178da2f..23f282a3a 100644 --- a/packages/nnn/build.sh +++ b/packages/nnn/build.sh @@ -1,16 +1,11 @@ TERMUX_PKG_HOMEPAGE=https://github.com/jarun/nnn -TERMUX_PKG_DESCRIPTION="The fastest terminal file manager ever written." +TERMUX_PKG_DESCRIPTION="Free, fast, friendly file browser" TERMUX_PKG_VERSION=1.9 TERMUX_PKG_SHA256=7ba298a55a579640fe0ae37f553be739957da0c826f532beac46acfb56e2d726 TERMUX_PKG_SRCURL=https://github.com/jarun/nnn/archive/v${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_DEPENDS="ncurses, readline" TERMUX_PKG_BUILD_IN_SRC=yes -termux_step_make() { - # nnn always rebuilds on "make install", so doing "make" is unneccessary - return -} - -termux_step_make_install() { - make CFLAGS="-O3 -I$TERMUX_PREFIX/include -Dushort=uint32_t" install +termux_step_pre_configure() { + CFLAGS+=" -Dushort=uint32_t" } diff --git a/packages/nnn/nnn.c.patch b/packages/nnn/nnn.c.patch new file mode 100644 index 000000000..3d1dd06f3 --- /dev/null +++ b/packages/nnn/nnn.c.patch @@ -0,0 +1,13 @@ +Include for ffs(3). + +diff -u -r ../nnn-1.9/nnn.c ./nnn.c +--- ../nnn-1.9/nnn.c 2018-08-10 02:51:49.000000000 +0000 ++++ ./nnn.c 2018-09-28 16:57:19.625923395 +0000 +@@ -71,6 +71,7 @@ + #include + #include + #include ++#include + #include + #include + #include