summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 069eacd42b9f6c327b3e4a9adf6f00104c7e0442 (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
# Maintainer: Vitruvius <vitrvvivs dot architectus at gmail dot com>

_gitname=htop
pkgname=htop-temperature-clockspeed-vim-git
pkgver=1120.b8c555c
pkgrel=1
pkgdesc="Interactive text-mode process viewer"
url="https://github.com/vitrvvivs/${_gitname}"
license=('GPL')
arch=('i686' 'x86_64')
depends=('ncurses')
makedepends=('git' 'python2')
optdepends=('lsof: list open files for running process'
            'strace: attach to running process')
provides=('htop')
conflicts=('htop')
options=('!emptydirs')
source=("git+${url}.git")
sha256sums=('SKIP')

pkgver() {
	 cd "${srcdir}/${_gitname}"
	 local ver="$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
	 printf "%s" "${ver//-/.}"
}

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

	 ./autogen.sh

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

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

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