Browse Source

nnn: Update from 1.9 to 2.0

android-5
Fredrik Fornwall 6 years ago
parent
commit
b1c6374d5b
  1. 10
      packages/nnn/build.sh
  2. 13
      packages/nnn/nnn.c.patch

10
packages/nnn/build.sh

@ -1,11 +1,7 @@
TERMUX_PKG_HOMEPAGE=https://github.com/jarun/nnn
TERMUX_PKG_DESCRIPTION="Free, fast, friendly file browser"
TERMUX_PKG_VERSION=1.9
TERMUX_PKG_SHA256=7ba298a55a579640fe0ae37f553be739957da0c826f532beac46acfb56e2d726
TERMUX_PKG_VERSION=2.0
TERMUX_PKG_SHA256=0029efd3d009c197b1646d260350f3f87edca76eef3be6b81846af133d58d6a9
TERMUX_PKG_SRCURL=https://github.com/jarun/nnn/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_DEPENDS="ncurses, readline"
TERMUX_PKG_DEPENDS="ncurses"
TERMUX_PKG_BUILD_IN_SRC=yes
termux_step_pre_configure() {
CFLAGS+=" -Dushort=uint32_t"
}

13
packages/nnn/nnn.c.patch

@ -1,13 +0,0 @@
Include <strings.h> 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 <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <strings.h>
#include <time.h>
#include <unistd.h>
#include <readline/history.h>
Loading…
Cancel
Save