# Contributor: Łukasz Jendrysik # Contributor: Sören Tempel # Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=glances pkgver=3.0.2 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="f86aa285e803c38a852eca6782642c0a854fdb14ae938e22482288d39045d2e6b42040409f5ba323784d3bd9a32386b90964b074d5a65cd03d904bde0ec941d3 glances-3.0.2.tar.gz"