nnn: update to 4.2
authorMichal Vasilek <michal.vasilek@nic.cz>
Wed, 22 Sep 2021 14:02:43 +0000 (16:02 +0200)
committerJosef Schlehofer <pepe.schlehofer@gmail.com>
Mon, 18 Oct 2021 01:39:12 +0000 (03:39 +0200)
* switch to AUTORELEASE

Signed-off-by: Michal Vasilek <michal.vasilek@nic.cz>
(cherry picked from commit 42bf46039c48d7a7b03c292e1975870b1d360269)

utils/nnn/Makefile
utils/nnn/patches/musl-fts.patch [new file with mode: 0644]

index 6b105c7ebba728c5c94b9420c491e52cd54078bf..1db0b32d90f3578aa48083f84c027f7f1dead0e6 100644 (file)
@@ -1,12 +1,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=nnn
-PKG_VERSION:=3.6
-PKG_RELEASE:=1
+PKG_VERSION:=4.2
+PKG_RELEASE:=$(AUTORELEASE)
 
 PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/jarun/nnn/tar.gz/v$(PKG_VERSION)?
-PKG_HASH:=875094caebcc22ecf53b3722d139b127d25e1d5563a954342f32ded8980978b5
+PKG_HASH:=5675f9fe53bddfd92681ef88bf6c0fab3ad897f9e74dd6cdff32fe1fa62c687f
 
 PKG_MAINTAINER:=Josef Schlehofer <pepe.schlehofer@gmail.com>
 PKG_LICENSE:=BSD-2-Clause
@@ -21,7 +21,7 @@ define Package/nnn
   CATEGORY:=Utilities
   TITLE:=Full-featured terminal file manager
   URL:=https://github.com/jarun/nnn
-  DEPENDS:=+libncurses +libreadline
+  DEPENDS:=+libncurses +libreadline +musl-fts
 endef
 
 define Package/nnn/description
diff --git a/utils/nnn/patches/musl-fts.patch b/utils/nnn/patches/musl-fts.patch
new file mode 100644 (file)
index 0000000..5f15c57
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/Makefile
++++ b/Makefile
+@@ -129,7 +129,7 @@ CFLAGS += -std=c11 -Wall -Wextra -Wshado
+ CFLAGS += $(CFLAGS_OPTIMIZATION)
+ CFLAGS += $(CFLAGS_CURSES)
+-LDLIBS += $(LDLIBS_CURSES) -lpthread
++LDLIBS += $(LDLIBS_CURSES) -lpthread -lfts
+ # static compilation needs libgpm development package
+ ifeq ($(strip $(O_STATIC)),1)