aboutsummaryrefslogtreecommitdiffstats
path: root/community/glances/APKBUILD
blob: 8bb65148776a593da06cd062b5c4f35828b5af69 (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
# 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.6.2
pkgrel=1
pkgdesc="A CLI curses based monitoring tool"
url="http://nicolargo.github.com/glances/"
arch="noarch"
license="LGPL3+"
depends="py-psutil py-bottle py-snmp py-batinfo docker-py"
makedepends="python-dev py-setuptools"
subpackages="$pkgname-doc"
source="glances-$pkgver.tar.gz::https://github.com/nicolargo/glances/archive/v$pkgver.tar.gz"

builddir="$srcdir"/glances-$pkgver
build() {
	cd "$builddir"
	python setup.py build || return 1
}

package() {
	cd "$builddir"
	python setup.py install --prefix=/usr --root="$pkgdir" || return 1

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

md5sums="5fbf04e9176030fb50194fcc39596128  glances-2.6.2.tar.gz"
sha256sums="7ed8bd81308565a25d22216dfe3f64c6ef8cfc4975a0d92239aff44a912c7694  glances-2.6.2.tar.gz"
sha512sums="bc3de18e05138a1a5cf4ebb50d359c405515d3aace9838eb5657c8fda11b43af63a02fd4fd346dde62a35572823d5628d8c4cb181c645ef3bd114e66d0f68c1d  glances-2.6.2.tar.gz"