ncdu: update to 1.17 and add blue option
authorJohn Audia <therealgraysky@proton.me>
Sat, 18 Jun 2022 12:52:17 +0000 (08:52 -0400)
committerRosen Penev <rosenp@gmail.com>
Wed, 6 Jul 2022 04:59:19 +0000 (21:59 -0700)
Upstream bump and add a patch to use a blue highlight color for the dark
color scheme (--color dark) as some users find the default bright green is
too intense.

Note that invoking ncdu without the --color switch at use uses the upstream
default bright green, so users will need to call ncdu with --color dark in
order to get the blue color.

Signed-off-by: John Audia <therealgraysky@proton.me>
utils/ncdu/Makefile
utils/ncdu/patches/900-use-alternative-color.patch [new file with mode: 0644]

index 6a93def8731cc62c72fd8d7e8d3386233778147a..1b1e4f16d5269578f34ef7d616664cf7768b9a92 100644 (file)
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=ncdu
-PKG_VERSION:=1.16
+PKG_VERSION:=1.17
 PKG_RELEASE:=$(AUTORELEASE)
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://dev.yorhel.nl/download
-PKG_HASH:=2b915752a183fae014b5e5b1f0a135b4b408de7488c716e325217c2513980fd4
+PKG_HASH:=810745a8ed1ab3788c87d3aea4cc1a14edf6ee226f764bcc383e024ba56adbf1
 
 PKG_MAINTAINER:=Charles E. Lehner <cel@celehner.com>
 PKG_LICENSE:=MIT
diff --git a/utils/ncdu/patches/900-use-alternative-color.patch b/utils/ncdu/patches/900-use-alternative-color.patch
new file mode 100644 (file)
index 0000000..f804af4
--- /dev/null
@@ -0,0 +1,26 @@
+--- a/src/util.h
++++ b/src/util.h
+@@ -36,18 +36,18 @@
+   C(DEFAULT,     _,_,0  ,    _,      _,    0,    WHITE,  BLACK,0)\
+   C(BOX_TITLE,   _,_,B  ,    BLUE,   _,    B,    BLUE,   BLACK,B)\
+   C(HD,          _,_,R  ,    BLACK,  CYAN, 0,    BLACK,  CYAN, 0)    /* header & footer */\
+-  C(SEL,         _,_,R  ,    WHITE,  GREEN,B,    WHITE,  GREEN,B)\
++  C(SEL,         _,_,R  ,    WHITE,   BLUE,B,    WHITE,  GREEN,B)\
+   C(NUM,         _,_,0  ,    YELLOW, _,    B,    YELLOW, BLACK,B)\
+   C(NUM_HD,      _,_,R  ,    YELLOW, CYAN, B,    YELLOW, CYAN, B)\
+-  C(NUM_SEL,     _,_,R  ,    YELLOW, GREEN,B,    YELLOW, GREEN,B)\
++  C(NUM_SEL,     _,_,R  ,    YELLOW,  BLUE,B,    YELLOW, GREEN,B)\
+   C(KEY,         _,_,B  ,    YELLOW, _,    B,    YELLOW, BLACK,B)\
+   C(KEY_HD,      _,_,B|R,    YELLOW, CYAN, B,    YELLOW, CYAN, B)\
+   C(DIR,         _,_,0  ,    BLUE,   _,    B,    BLUE,   BLACK,B)\
+-  C(DIR_SEL,     _,_,R  ,    BLUE,   GREEN,B,    BLUE,   GREEN,B)\
++  C(DIR_SEL,     _,_,R  ,    BLUE,    BLUE,B,    BLUE,   GREEN,B)\
+   C(FLAG,        _,_,0  ,    RED,    _,    0,    RED,    BLACK,0)\
+-  C(FLAG_SEL,    _,_,R  ,    RED,    GREEN,0,    RED,    GREEN,0)\
++  C(FLAG_SEL,    _,_,R  ,    RED,     BLUE,0,    RED,    GREEN,0)\
+   C(GRAPH,       _,_,0  ,    MAGENTA,_,    0,    MAGENTA,BLACK,0)\
+-  C(GRAPH_SEL,   _,_,R  ,    MAGENTA,GREEN,0,    MAGENTA,GREEN,0)
++  C(GRAPH_SEL,   _,_,R  ,    MAGENTA, BLUE,0,    MAGENTA,GREEN,0)
+ enum ui_coltype {
+ #define C(name, ...) UIC_##name,