# Maintainer: Jaroslav Lichtblau <svetlemodry@archlinux.org>
# Contributor: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
pkgname=iotop
pkgver=0.6
pkgrel=11
pkgdesc='View I/O usage of processes'
arch=('any')
url='http://guichaz.free.fr/iotop/'
license=('GPL')
depends=('python')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
changelog=$pkgname.changelog
source=(http://guichaz.free.fr/$pkgname/files/$pkgname-$pkgver.tar.bz2{,.asc})
sha256sums=('3adea2a24eda49bbbaeb4e6ed2042355b441dbd7161e883067a02bfc8dcef75b'
'SKIP')
validpgpkeys=('72FCCF352015B102B5E60D31959E7A3E4D23A27E') # Guillaume Chazarain <guichaz@gmail.com>
prepare() {
cd "${srcdir}"/$pkgname-$pkgver
# Install binary to /usr/bin
sed -i '7,13d' setup.py
}
build() {
cd "${srcdir}"/$pkgname-$pkgver
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}"/$pkgname-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
#FS#33906 fix
chmod 644 "${pkgdir}"/usr/share/man/man8/iotop.8
}