# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=py-psutil _pkgname=psutil pkgver=4.1.0 pkgrel=0 pkgdesc="A cross-platform process and system utilities module for Python" url="https://github.com/giampaolo/psutil" arch="all" license="BSD" depends="" depends_dev="" makedepends="$depends_dev linux-headers python-dev" install="" subpackages="" source="http://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" _builddir="$srcdir"/$_pkgname-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" python setup.py build || return 1 } package() { cd "$_builddir" python setup.py install --root=$pkgdir/ --optimize=1 || return 1 } md5sums="017e1023484ebf436d3514ebeaf2e7e9 psutil-4.1.0.tar.gz" sha256sums="c6abebec9c8833baaf1c51dd1b0259246d1d50b9b50e9a4aa66f33b1e98b8d17 psutil-4.1.0.tar.gz" sha512sums="dd59c6561dc5bc9514fb79fc440308ff701607b575d5d3332be86fdbca502e20bd786cc262e360e493618719c14c60cda842c5c654346f56bd740ca070403567 psutil-4.1.0.tar.gz"