# $Id: PKGBUILD 137400 2015-07-25 00:38:22Z seblu $
# Maintainer: Sébastien Luttringer <seblu@archlinux.org>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor: Francois Boulogne <fboulogne at april dot org>

pkgname=glances
pkgver=2.4.2
pkgrel=2
pkgdesc='CLI curses-based monitoring tool'
arch=('any')
url='https://github.com/nicolargo/glances'
license=('LGPL')
depends=('python' 'python-psutil' 'python-setuptools')
optdepends=('python-bottle: web server support'
            'hddtemp: HDD temperature monitoring support'
            'python-matplotlib: for graphical/chart support')
source=("https://pypi.python.org/packages/source/G/Glances/Glances-$pkgver.tar.gz")
md5sums=('21d8ca9d780bb52101a365c33e65869d')

package() {
  cd Glances-$pkgver
  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
  # remove html doc
  rm -r "$pkgdir/usr/share/doc/$pkgname"/{glances-doc.html,images}
}

# vim:set ts=2 sw=2 et:
