aboutsummaryrefslogtreecommitdiffstats
path: root/community/glances/APKBUILD
blob: c1c9bc1eb5561101b8dc198cbae1c3510c97e0f4 (plain) (blame)
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
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=glances
pkgver=2.10
pkgrel=0
pkgdesc="A CLI curses based monitoring tool"
url="http://nicolargo.github.com/glances/"
arch="noarch"
license="LGPL3+"
depends="py2-psutil py2-bottle py2-snmp py2-batinfo docker-py py-setuptools" 
makedepends="python2-dev py-setuptools"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/nicolargo/$pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"
options="!check"  # tests fail on builder infra due to env. limitations

build() {
	cd "$builddir"
	python2 setup.py build
}

check() {
	cd "$builddir"
	python2 unitest.py
}

package() {
	cd "$builddir"
	python2 setup.py install --prefix=/usr --root="$pkgdir"

	# Remove images and HTML doc depending on those
	rm -rf "$pkgdir"/usr/share/doc/$pkgname/$pkgname-doc.html \
		"$pkgdir"/usr/share/doc/$pkgname/images
}

sha512sums="6fff5fc764af0b753d185942696c19ac6b64073e444bb281e75f2f6e2f00a8b5eee0020441842c49b7858a9bb76fe8bbcb311c53596fef119f76b7e020e707ad  glances-2.10.tar.gz"