# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>

pkgname='python2-psutil'
pkgver=6.0.0
pkgrel=1
pkgdesc='A cross-platform process and system utilities module for Python2'
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
url='https://github.com/giampaolo/psutil'
license=('custom: BSD')
makedepends=('python2' 'python2-setuptools')
source=("https://github.com/giampaolo/psutil/archive/release-$pkgver.tar.gz")
sha512sums=('9db50d4c10cd6c0a73099f7262c218fd6e8e38fb443d22b42a45765527fe6f982455a7ca23d6d679ccc5df130c4257bb7fb5ee539ac5991d92358a072ab290a7')

build() {
  cd psutil-release-$pkgver

  python2 setup.py build
}

package() {
  cd psutil-release-$pkgver

  python2 setup.py install --root="$pkgdir" --optimize=1
  install -D -m 644 LICENSE "$pkgdir/"usr/share/licenses/$pkgname/LICENSE
}
