summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 01b73d6935ecd529d8b9850c916e420eebea448f (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
# Maintainer icasdri <icasdri at gmail dot com>
# Contributor: Yardena Cohen <yardenack 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: Hekuran Gashi <hekurangashi at protonmail dot com>

_pkgname=htop
pkgname=htop-vim-solarized-git
pkgver=3.3.0.r31.g4feac8e7
pkgrel=1
pkgdesc="Interactive process viewer with solarized and vim keybindings patch"
arch=('i686' 'x86_64')
url='https://github.com/htop-dev/htop'
license=('GPL')
depends=('ncurses' 'libncursesw.so' 'libnl')
makedepends=('git')
optdepends=('lsof: show files opened by a process'
            'strace: attach to a running process')
options=('!emptydirs')
provides=('htop')
conflicts=('htop')
source=(
    "git+${url}.git"
    'solarized-colors.patch'
    'vim-keybindings.patch'
)
sha384sums=(
    'SKIP'
    '33b6f8247d6784b73f63870b44340cf0f765d22dd3ce5306718a2698dccdb171a3bb905fe87b966a598e3b4c0730d241'
    'a1111ae294f39530b5836f12071d35c8408bc0422c2e35f74c09453b1b6f200a77e37883b27390780584035fd08b3622'
)



pkgver() {
    cd "${srcdir}/${_pkgname}"
    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
    cd "${srcdir}/${_pkgname}"

    for _p in "${source[@]:1}"
    do
        msg2 "Applying $_p"
        patch -p1 -i "../$_p"
    done

    autoreconf -fi
}

build() {
    cd "${srcdir}/${_pkgname}"

    ./configure \
        --prefix=/usr \
        --sysconfdir=/etc \
        --enable-cgroup \
        --enable-delayacct \
        --enable-openvz \
        --enable-unicode \
        --enable-vserver

    make
}

package() {
    cd "${srcdir}/${_pkgname}"
    make DESTDIR="${pkgdir}" install
}