blob: 89a974623305117add31b986e78c720b5387e317 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
# Maintainer: Sean Greenslade <aur AT seangreenslade DOT com>
# Contributor: Lars Rustand <rustand dot lars at gmail dot com>
# Contributor: Boohbah <boohbah at gmail.com>
# Contributor: Eric Belanger <eric at archlinux.org>
# Contributor: Daniel J Griffiths <ghost1227 at archlinux.us>
# Contributor: Wesley Merkel <ooesili at gmail.com>
# Contributor: sekret <sekret at posteo.se>
_pkgname=htop
pkgname=$_pkgname-solarized
_tag='4dbd0b5c87f4225495d6e0591a1d7227f120ead1' # git rev-parse ${pkgver}
pkgver=3.3.0
pkgrel=1
pkgdesc='Interactive process viewer with solarized patch'
arch=('i686' 'x86_64' 'armv7h')
url='https://htop.dev/'
license=('GPL')
depends=('libcap' 'libcap.so' 'libnl' 'ncurses' 'libncursesw.so')
makedepends=('git' 'lm_sensors')
optdepends=('lm_sensors: show cpu temperatures'
'lsof: show files opened by a process'
'strace: attach to a running process')
provides=('htop')
conflicts=('htop')
options=('!emptydirs')
validpgpkeys=('F7ABE8761E6FE68638E6283AFE0842EE36DD8C0C' # Nathan Scott <nathans@debian.org>
'0D316B6ABE022C7798D0324BF1D35CB9E8E12EAD') # Benny Baumann <BenBE@geshi.org>
source=("git+https://github.com/htop-dev/htop.git#tag=${pkgver}"
'htop-solarized.patch')
sha256sums=('a894206ecef4b690b97813d7b1626c98bacc9c82129b372d84680da8f6225761'
'30e1703d2662734d4094ea17cbabf029b251287b1d502b75893041debb36e3f3')
_backports=(
# Fix the display of number of running tasks
'b6b9384678fa111d47a8d3074c31490863619d12'
# Undo too-aggressive code collapsing from tree mode refactoring
'5d778eaacc78c69d5597b57afb4f98062d8856ef'
# Clicking on column headers needs to also update the sort direction arrow
'91990b1a34927a4136a85e4ff9adcdbfa500286a'
# Disable basename matching for kernel threads
'71b099a8df9e8c2bf4361a9a93bebc409f513460'
)
_reverts=(
)
prepare() {
cd "${_pkgname}"
local _c _l
for _c in "${_backports[@]}"; do
if [[ "${_c}" == *..* ]]; then _l='--reverse'; else _l='--max-count=1'; fi
git log --oneline "${_l}" "${_c}"
git cherry-pick --mainline 1 --no-commit "${_c}"
done
for _c in "${_reverts[@]}"; do
if [[ "${_c}" == *..* ]]; then _l='--reverse'; else _l='--max-count=1'; fi
git log --oneline "${_l}" "${_c}"
git revert --mainline 1 --no-commit "${_c}"
done
autoreconf -fi
# Solarized patch
patch -p1 -N -i "${srcdir}/htop-solarized.patch"
}
build() {
cd "${_pkgname}"
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--enable-affinity \
--enable-capabilities \
--enable-delayacct \
--enable-openvz \
--enable-sensors \
--enable-unicode \
--enable-vserver
make
}
package() {
cd "${_pkgname}"
make DESTDIR="${pkgdir}" install
}
# vim:set ts=2 sw=2 et:
|