Update to nnn-3.0

Changes: https://github.com/jarun/nnn/releases/tag/v3.0

Patch has been committed upstream.

From Martin Ziemer <horrad AT horrad DOT de> (MAINTAINER). Thank you!
This commit is contained in:
bket 2020-02-12 14:05:23 +00:00
parent 1edd350299
commit 667a8e7534
3 changed files with 5 additions and 21 deletions

View File

@ -1,8 +1,8 @@
# $OpenBSD: Makefile,v 1.5 2020/01/24 15:32:23 bket Exp $
# $OpenBSD: Makefile,v 1.6 2020/02/12 14:05:23 bket Exp $
COMMENT = the missing terminal file browser for X
V = 2.9
V = 3.0
DISTNAME = nnn-v${V}
PKGNAME = nnn-${V}
@ -26,7 +26,7 @@ FAKE_FLAGS = MANPREFIX="$(PREFIX)/man" \
USE_GMAKE = Yes
NO_TEST = Yes
WRKDIST = ${WRKDIR}/nnn
WRKDIST = ${WRKDIR}/nnn-${V}
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/bash-completion/completions/

View File

@ -1,2 +1,2 @@
SHA256 (nnn-v2.9.tar.gz) = ugsHsNh7ptZEIlnal22OM+1pjeQygjr7b8b2gBy92fY=
SIZE (nnn-v2.9.tar.gz) = 99324
SHA256 (nnn-v3.0.tar.gz) = BNttZxDOEjLHeb9wE3qGVX5IZhTiAydxcSK7Y/NjSPc=
SIZE (nnn-v3.0.tar.gz) = 102636

View File

@ -1,16 +0,0 @@
$OpenBSD: patch-src_nnn_c,v 1.1 2020/01/24 15:32:23 bket Exp $
Fix displaying wrong capacity. Taken from https://github.com/jarun/nnn/pull/441
Index: src/nnn.c
--- src/nnn.c.orig
+++ src/nnn.c
@@ -3285,7 +3285,7 @@ static size_t get_fs_info(const char *path, bool type)
return 0;
if (type == CAPACITY)
- return svb.f_blocks << ffs((int)(svb.f_bsize >> 1));
+ return svb.f_blocks << ffs((int)(svb.f_frsize >> 1));
return svb.f_bavail << ffs((int)(svb.f_frsize >> 1));
}