aboutsummaryrefslogtreecommitdiffstats
path: root/community/glances/APKBUILD
blob: b2c55fde67d87cb38e349eae9f54774e5048398f (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=3.0
pkgrel=0
pkgdesc="A CLI curses based monitoring tool"
url="http://nicolargo.github.com/glances/"
arch="noarch"
license="LGPL-3.0-or-later"
depends="py3-psutil py3-bottle py3-snmp py3-batinfo docker-py py3-setuptools"
makedepends="python3-dev py3-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"
	python3 setup.py build
}

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

package() {
	cd "$builddir"
	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="3f63ee11a6ea2cad17256cdb6ed8c7e09b1c892e8b0bdac959a8a319efe36ddb625cd6fc45409d07d6d160fd26e2e5d5a73c4e84ab71399d5aa5ddc7c7897e4c  glances-3.0.tar.gz"