Package Details: htop-solarized 3.2.2-1

Git Clone URL: https://aur.archlinux.org/htop-solarized.git (read-only, click to copy)
Package Base: htop-solarized
Description: Interactive process viewer with solarized patch
Upstream URL: https://htop.dev/
Licenses: GPL
Conflicts: htop
Provides: htop
Submitter: None
Maintainer: zootboy
Last Packager: zootboy
Votes: 36
Popularity: 0.000000
First Submitted: 2013-02-21 00:02 (UTC)
Last Updated: 2023-02-05 07:31 (UTC)

Dependencies (10)

Required by (4)

Sources (2)

Latest Comments

1 2 3 Next › Last »

zootboy commented on 2020-11-05 03:32 (UTC)

Adopted and updated to 3.0.2. Thanks to @Dinjector for the patch.

akhil commented on 2020-10-28 04:29 (UTC) (edited on 2020-10-28 04:30 (UTC) by akhil)

==> Retrieving sources...
-> Downloading htop-2.2.0.tar.gz...
curl: (22) The requested URL returned error: 404

==> ERROR: Failure while downloading http://hisham.hm/htop/releases/2.2.0/htop-2.2.0.tar.gz
Aborting...
error downloading sources: htop-solarized

SoBC commented on 2020-10-02 18:08 (UTC)

To use htop 3.0.2 you can apply following patch:

diff --git a/PKGBUILD b/PKGBUILD
index b877c3e..2d15618 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,7 +7,7 @@

 _pkgname=htop
 pkgname=$_pkgname-solarized
-pkgver=2.2.0
+pkgver=3.0.2
 pkgrel=1
 pkgdesc="Interactive process viewer with solarized patch"
 arch=('i686' 'x86_64' 'armv7h')
@@ -20,10 +20,10 @@ optdepends=('lsof: show files opened by a process'
 provides=('htop')
 conflicts=('htop')
 options=('!emptydirs')
-source=("http://hisham.hm/$_pkgname/releases/$pkgver/$_pkgname-$pkgver.tar.gz"
-        'htop-2.2.0-solarized.patch')
-sha512sums=('ec1335bf0e3e0387e5e50acbc508d0effad19c4bc1ac312419dc97b82901f4819600d6f87a91668f39d429536d17304d4b14634426a06bec2ecd09df24adc62e'
-            '5fa6d5627d3157bedb0b5d22b2d9c932af02bcf61bfed3f6f335f47eabef29d58820570c70f8babbd76ca0b938fda567cd51c6d8ec1c50f87b6d43d8b57c22dd')
+source=("https://dl.bintray.com/$_pkgname/source/$_pkgname-$pkgver.tar.gz"
+        "htop-$pkgver-solarized.patch")
+sha512sums=('be25cb04a7f1e4004bda936674c36164f14112306cd32adc8a78f9160b1325705bd580eb44c5cf876fe8f371387f181190e947e4f25c4e8087da0cbfdbffd3b4'
+            'e1c859f5e0b72d39c339037c440eab59b5d0707c3266f74fd51847f1ac4a1377a7484d5d0928a4a5ac2912174bba31eae2168fe1571801a32950b47e1a1b5299')

 prepare() {
   cd "$_pkgname-$pkgver"
@@ -32,7 +32,7 @@ prepare() {
   #sed -i 's|python|python2|' scripts/MakeHeader.py

   # Solarized patch: https://gist.github.com/ooesili/11292686
-  patch -p1 -N -i "$srcdir/htop-2.2.0-solarized.patch"
+  patch -p1 -N -i "$srcdir/htop-$pkgver-solarized.patch"
 }

 build() {
diff --git a/htop-2.2.0-solarized.patch b/htop-3.0.2-solarized.patch
similarity index 77%
rename from htop-2.2.0-solarized.patch
rename to htop-3.0.2-solarized.patch
index 0b031e3..0ba4e17 100644
--- a/htop-2.2.0-solarized.patch
+++ b/htop-3.0.2-solarized.patch
@@ -1,8 +1,8 @@
 diff --git a/CRT.c b/CRT.c
-index 2ab20c2..74a1d78 100644
+index 7776c4e..fc39a05 100644
 --- a/CRT.c
 +++ b/CRT.c
-@@ -181,7 +181,7 @@ int CRT_colorSchemes[LAST_COLORSCHEME][LAST_COLORELEMENT] = {
+@@ -95,7 +95,7 @@ int CRT_colorSchemes[LAST_COLORSCHEME][LAST_COLORELEMENT] = {
        [LED_COLOR] = ColorPair(Green,Black),
        [TASKS_RUNNING] = A_BOLD | ColorPair(Green,Black),
        [PROCESS] = A_NORMAL,
@@ -11,7 +11,7 @@ index 2ab20c2..74a1d78 100644
        [PROCESS_TAG] = A_BOLD | ColorPair(Yellow,Black),
        [PROCESS_MEGABYTES] = ColorPair(Cyan,Black),
        [PROCESS_BASENAME] = A_BOLD | ColorPair(Cyan,Black),
-@@ -193,7 +193,7 @@ int CRT_colorSchemes[LAST_COLORSCHEME][LAST_COLORELEMENT] = {
+@@ -107,7 +107,7 @@ int CRT_colorSchemes[LAST_COLORSCHEME][LAST_COLORELEMENT] = {
        [PROCESS_THREAD] = ColorPair(Green,Black),
        [PROCESS_THREAD_BASENAME] = A_BOLD | ColorPair(Green,Black),
        [BAR_BORDER] = A_BOLD,
@@ -20,7 +20,7 @@ index 2ab20c2..74a1d78 100644
        [SWAP] = ColorPair(Red,Black),
        [GRAPH_1] = A_BOLD | ColorPair(Cyan,Black),
        [GRAPH_2] = ColorPair(Cyan,Black),
-@@ -201,7 +201,7 @@ int CRT_colorSchemes[LAST_COLORSCHEME][LAST_COLORELEMENT] = {
+@@ -115,7 +115,7 @@ int CRT_colorSchemes[LAST_COLORSCHEME][LAST_COLORELEMENT] = {
        [MEMORY_BUFFERS] = ColorPair(Blue,Black),
        [MEMORY_BUFFERS_TEXT] = A_BOLD | ColorPair(Blue,Black),
        [MEMORY_CACHE] = ColorPair(Yellow,Black),
@@ -29,12 +29,12 @@ index 2ab20c2..74a1d78 100644
        [LOAD_AVERAGE_FIVE] = A_BOLD | ColorPair(Cyan,Black),
        [LOAD_AVERAGE_ONE] = A_BOLD | ColorPair(White,Black),
        [LOAD] = A_BOLD,
-@@ -215,7 +215,7 @@ int CRT_colorSchemes[LAST_COLORSCHEME][LAST_COLORELEMENT] = {
+@@ -129,7 +129,7 @@ int CRT_colorSchemes[LAST_COLORSCHEME][LAST_COLORELEMENT] = {
        [CPU_NICE_TEXT] = A_BOLD | ColorPair(Blue,Black),
        [CPU_NORMAL] = ColorPair(Green,Black),
-       [CPU_KERNEL] = ColorPair(Red,Black),
--      [CPU_IOWAIT] = A_BOLD | ColorPair(Black, Black),
-+      [CPU_IOWAIT] = A_BOLD | ColorPair(Green, Black),
+       [CPU_SYSTEM] = ColorPair(Red,Black),
+-      [CPU_IOWAIT] = A_BOLD | ColorPairGrayBlack,
++      [CPU_IOWAIT] = A_BOLD | ColorPair(Green,Black),
        [CPU_IRQ] = ColorPair(Yellow,Black),
        [CPU_SOFTIRQ] = ColorPair(Magenta,Black),
        [CPU_STEAL] = ColorPair(Cyan,Black),

Dinjector commented on 2020-08-30 07:54 (UTC)

diff --git a/CRT.c b/CRT.c
index 869573e..3cffe85 100644
--- a/CRT.c
+++ b/CRT.c
@@ -241,7 +241,7 @@ int CRT_colorSchemes[LAST_COLORSCHEME][LAST_COLORELEMENT] = {
       [LED_COLOR] = ColorPair(Green,Black),
       [TASKS_RUNNING] = A_BOLD | ColorPair(Green,Black),
       [PROCESS] = A_NORMAL,
-      [PROCESS_SHADOW] = A_BOLD | ColorPairGrayBlack,
+      [PROCESS_SHADOW] = A_BOLD | ColorPair(Green,Black),
       [PROCESS_TAG] = A_BOLD | ColorPair(Yellow,Black),
       [PROCESS_MEGABYTES] = ColorPair(Cyan,Black),
       [PROCESS_BASENAME] = A_BOLD | ColorPair(Cyan,Black),
@@ -253,7 +253,7 @@ int CRT_colorSchemes[LAST_COLORSCHEME][LAST_COLORELEMENT] = {
       [PROCESS_THREAD] = ColorPair(Green,Black),
       [PROCESS_THREAD_BASENAME] = A_BOLD | ColorPair(Green,Black),
       [BAR_BORDER] = A_BOLD,
-      [BAR_SHADOW] = A_BOLD | ColorPairGrayBlack,
+      [BAR_SHADOW] = A_BOLD | ColorPair(Green,Black),
       [SWAP] = ColorPair(Red,Black),
       [GRAPH_1] = A_BOLD | ColorPair(Cyan,Black),
       [GRAPH_2] = ColorPair(Cyan,Black),
@@ -261,7 +261,7 @@ int CRT_colorSchemes[LAST_COLORSCHEME][LAST_COLORELEMENT] = {
       [MEMORY_BUFFERS] = ColorPair(Blue,Black),
       [MEMORY_BUFFERS_TEXT] = A_BOLD | ColorPair(Blue,Black),
       [MEMORY_CACHE] = ColorPair(Yellow,Black),
-      [LOAD_AVERAGE_FIFTEEN] = ColorPair(Cyan,Black),
+      [LOAD_AVERAGE_FIFTEEN] = ColorPair(Green,Black),
       [LOAD_AVERAGE_FIVE] = A_BOLD | ColorPair(Cyan,Black),
       [LOAD_AVERAGE_ONE] = A_BOLD | ColorPair(White,Black),
       [LOAD] = A_BOLD,
@@ -274,7 +274,7 @@ int CRT_colorSchemes[LAST_COLORSCHEME][LAST_COLORELEMENT] = {
       [CPU_NICE_TEXT] = A_BOLD | ColorPair(Blue,Black),
       [CPU_NORMAL] = ColorPair(Green,Black),
       [CPU_SYSTEM] = ColorPair(Red,Black),
-      [CPU_IOWAIT] = A_BOLD | ColorPairGrayBlack,
+      [CPU_IOWAIT] = A_BOLD | ColorPair(Green,Black),
       [CPU_IRQ] = ColorPair(Yellow,Black),
       [CPU_SOFTIRQ] = ColorPair(Magenta,Black),
       [CPU_STEAL] = ColorPair(Cyan,Black),

Dinjector commented on 2020-08-30 07:54 (UTC)

diff --git a/PKGBUILD b/PKGBUILD
index b877c3e..793d22b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,11 +7,11 @@

 _pkgname=htop
 pkgname=$_pkgname-solarized
-pkgver=2.2.0
+pkgver=3.0.0
 pkgrel=1
 pkgdesc="Interactive process viewer with solarized patch"
 arch=('i686' 'x86_64' 'armv7h')
-url="http://hisham.hm/htop/"
+url="https://htop.dev/"
 license=('GPL')
 depends=('ncurses')
 makedepends=('python2')
@@ -20,24 +20,22 @@ optdepends=('lsof: show files opened by a process'
 provides=('htop')
 conflicts=('htop')
 options=('!emptydirs')
-source=("http://hisham.hm/$_pkgname/releases/$pkgver/$_pkgname-$pkgver.tar.gz"
-        'htop-2.2.0-solarized.patch')
-sha512sums=('ec1335bf0e3e0387e5e50acbc508d0effad19c4bc1ac312419dc97b82901f4819600d6f87a91668f39d429536d17304d4b14634426a06bec2ecd09df24adc62e'
-            '5fa6d5627d3157bedb0b5d22b2d9c932af02bcf61bfed3f6f335f47eabef29d58820570c70f8babbd76ca0b938fda567cd51c6d8ec1c50f87b6d43d8b57c22dd')
+source=("https://github.com/htop-dev/htop/archive/$pkgver.tar.gz"
+        "$_pkgname-$pkgver-solarized.patch")
+sha512sums=('36dc37b416b9917005007448fe73fdd6475a3f7f8442a083923d3f5dfb706d0f1731255522a99b67cc547b239acb1c68b144f8d600e243eeba160b2a43e8339a'
+'c8489a54bbf3020d79e7fab546534b5746a6b08fba08648c4a3209d7d4255b539b1a8747385272801837ac18d0a36a67185cb096b88ce99bf0621ab6734d6e4a')

 prepare() {
   cd "$_pkgname-$pkgver"

-  #sed -i 's|ncursesw/curses.h|curses.h|' RichString.[ch] configure
-  #sed -i 's|python|python2|' scripts/MakeHeader.py
-
-  # Solarized patch: https://gist.github.com/ooesili/11292686
-  patch -p1 -N -i "$srcdir/htop-2.2.0-solarized.patch"
+  # Solarized patch derived from: https://gist.github.com/ooesili/11292686
+  patch -p1 -N -i "$srcdir/$_pkgname-$pkgver-solarized.patch"
 }

 build() {
   cd "$_pkgname-$pkgver"

+  ./autogen.sh
   ./configure \
       --prefix=/usr \
       --enable-unicode \

eh8 commented on 2020-06-19 06:37 (UTC)

Build error:

error making: %!s(func() string=0x555a60f9aed0)