aboutsummaryrefslogtreecommitdiffstats
path: root/community/glances/APKBUILD
blob: 8232f8bbd912dd77f2d5649cc62669280c739b79 (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
# 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=3.2.2
pkgrel=0
pkgdesc="CLI curses based monitoring tool"
url="http://nicolargo.github.com/glances/"
arch="noarch"
license="LGPL-3.0-or-later"
depends="py3-future py3-psutil py3-bottle py3-snmp py3-batinfo docker-py"
makedepends="py3-setuptools"
subpackages="$pkgname-doc"
source="glances-$pkgver.tar.gz::https://github.com/nicolargo/glances/archive/v$pkgver.tar.gz"
options="!check"  # tests fail on builder infra due to env. limitations

build() {
	python3 setup.py build
}

check() {
	python3 unitest.py
}

package() {
	python3 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="
e77b62e5fa6131914b56f0b5249789b3bcac0c625cd429eeb0870a14be55f15c401956c002376e5868fa1332bbb219e9bd3a5bd14c739e3404b068a063af6821  glances-3.2.2.tar.gz
"