# $Id: PKGBUILD 143994 2015-10-14 16:38:25Z 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.5.1
pkgrel=1
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=('b8a7815353cf10e1aafffc6f4f235926')

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:
