summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 426be2fd14336dc7722fac0dc0c186fca99d9bf9 (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
# Maintainer: Aoibhinn Nic Aoidh <aoibhinn.nic.aoidh+aur@gmail.com>
# Contributor: Yardena Cohen <yardenack at gmail dot com>

gitname=htim
pkgname=${gitname}-git
pkgver=3.0.6
pkgrel=1
epoch=1
pkgdesc="Htop improved, htop with vim key bindings"
url="https://gitlab.com/thelinuxguy9/htim"
license=('GPL')
arch=('i686' 'x86_64')
depends=(ncurses libnl)
makedepends=('git' 'python')
optdepends=('lsof: list open files for running process'
            'strace: attach to running process')
provides=('htop')
conflicts=('htop')
options=('!emptydirs')
source=("git+https://gitlab.com/thelinuxguy9/htim")
sha256sums=('SKIP')

# pkgver() {
#     cd "${srcdir}/${gitname}"
#     local ver="$(git describe --tags)"
#     printf "%s" "${ver//-/.}"
# }

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

	 ./autogen.sh

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

build() {
	 cd "${srcdir}/${gitname}"
	 make
}

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