aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Berthault <justin.berthault@zaclys.net>2021-06-03 11:13:49 +0200
committerJakub Jirutka <jakub@jirutka.cz>2021-06-03 10:54:22 +0000
commite44b324fe0a62d24abddfe3eb945e5cfbf63e923 (patch)
tree3240c9db7b3e8886e6b9f73d084af8ce8a95c61d
parent4d68a7bab941efc67e9c9faebf423c045f8476c6 (diff)
downloadaports-e44b324fe0a62d24abddfe3eb945e5cfbf63e923.tar.gz
aports-e44b324fe0a62d24abddfe3eb945e5cfbf63e923.tar.bz2
aports-e44b324fe0a62d24abddfe3eb945e5cfbf63e923.tar.xz
community/nnn: upgrade to 4.1
add `fts-dev` as `makedepends`, required on musl OS patch added to append '-ltfs' in Makefile
-rw-r--r--community/nnn/APKBUILD14
-rw-r--r--community/nnn/musl-fts-support.patch13
2 files changed, 22 insertions, 5 deletions
diff --git a/community/nnn/APKBUILD b/community/nnn/APKBUILD
index 34768072a6..609f10f8f9 100644
--- a/community/nnn/APKBUILD
+++ b/community/nnn/APKBUILD
@@ -1,13 +1,13 @@
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=nnn
-pkgver=4.0
+pkgver=4.1
pkgrel=0
pkgdesc="The unorthodox terminal file manager"
url="https://github.com/jarun/nnn"
arch="all"
license="BSD-2-Clause"
-makedepends="ncurses-dev readline-dev"
+makedepends="fts-dev ncurses-dev readline-dev"
install="$pkgname-plugins.post-install"
options="!check" # no tests provided and $(nnn -v) requires tty
subpackages="$pkgname-doc
@@ -16,8 +16,9 @@ subpackages="$pkgname-doc
$pkgname-fish-completion:fishcomp:noarch
$pkgname-zsh-completion:zshcomp:noarch
"
-source="https://github.com/jarun/nnn/archive/v$pkgver/$pkgname-$pkgver.tar.gz
+source="https://github.com/jarun/nnn/archive/v$pkgver/nnn-$pkgver.tar.gz
nnn-getplugs
+ musl-fts-support.patch
"
build() {
@@ -74,5 +75,8 @@ zshcomp() {
"$subpkgdir"/usr/share/zsh/site-functions/_$pkgname
}
-sha512sums="fde552a31674c9bf50a2e98de4456621bdc97aee36cd5efd7ad0cc33959965d01469fb20b12868ebffd4c8da79990b502e26895cb5b047ac8821e2ca09b0a234 nnn-4.0.tar.gz
-5870bd38c897c0738778952d3c65131ae37b44d8a5032add81645bcf46cae4c66700f319b514f8ab369e15900e4de1058736664ca3603a850ef0212a8ce8e7ee nnn-getplugs"
+sha512sums="
+7a199f64129afd8e2d8c00b5848e19042a537013831828a0144c8d7a0ba8de408fb09e7b3c4ae0986864e4b24b064a65e439f26d1ab76661887fdf78571c46c0 nnn-4.1.tar.gz
+5870bd38c897c0738778952d3c65131ae37b44d8a5032add81645bcf46cae4c66700f319b514f8ab369e15900e4de1058736664ca3603a850ef0212a8ce8e7ee nnn-getplugs
+024b569085e49c33c8fd4143ef97d1b96402e08acb7477f06a2de33f663843151c364f6d7c20329396cadbf75100255f70b28da5f2f44326880d34a3c4644a20 musl-fts-support.patch
+"
diff --git a/community/nnn/musl-fts-support.patch b/community/nnn/musl-fts-support.patch
new file mode 100644
index 0000000000..ddfd3d8e1d
--- /dev/null
+++ b/community/nnn/musl-fts-support.patch
@@ -0,0 +1,13 @@
+diff --git a/Makefile b/Makefile
+index 7e2d7be..c3fd556 100644
+--- a/Makefile
++++ b/Makefile
+@@ -133,7 +133,7 @@ CFLAGS += -std=c11 -Wall -Wextra -Wshadow
+ 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)