summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 59d1548fde87673050c93eb3d481307ea7f8e93d (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: Walter Casanova  wcasanova [at] disroot [dot] org

_pkgname=htop
pkgname=${_pkgname}-dev-git
pkgver=3.0.3.r19.g738d31b
pkgrel=1
pkgdesc="htop - an interactive process viewer, full-featured"
url="https://github.com/htop-dev/${_pkgname}"
license=('GPL')
arch=('i686' 'x86_64')
depends=('ncurses' 'libnl' 'libncursesw.so' 'hwloc' 'lm_sensors')
makedepends=('git' 'python')
optdepends=('lsof: list open files for running process'
            'strace: attach to running process')
provides=('htop')
conflicts=('htop' 'htop-git')
options=('!emptydirs')
source=("git+${url}.git")
sha256sums=('SKIP')

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

prepare() {
  cd "${srcdir}/${_pkgname}"
  ./autogen.sh
  ./configure \
      --prefix=/usr \
      --sysconfdir=/etc \
      --enable-werror \
      --enable-openvz \
      --enable-vserver \
      --enable-ancient-vserver \
      --enable-unicode \
      --enable-hwloc \
      --enable-setuid \
      --enable-delayacct \
      --enable-sensors
}

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

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