APP=iotop
VERSION=0.6
BUILD=2sml
HOMEPAGE="http://guichaz.free.fr/iotop"
DOWNLOAD="http://guichaz.free.fr/iotop/files/iotop-0.6.tar.gz"
DESC="Top-like I/O monitor written in python"
REQUIRES="python3"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION 
  fixbuilddirpermissions

  patch -p1 < $SRCDIR/fix-python.patch

  python3 setup.py build
  python3 setup.py install --prefix="" --root=$PKG

  cp COPYING $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
27d2525fa88d11f14ba477a570cdf5ef09b591846c31bc7a3970b92f22aa687e1182f1e08bbdddf400f17b10425d6426969be2846210b4714a922d1a92fb2fe6  iotop-0.6.tar.lz
e4c5aee993e7971dd731202f69e2c0a704833dce26c09329e9d7fa8d5f37c9584082a165ceaab8a07aa2421f0debf9af16f41f6b657d841ae6cc7bb2e7fb8d79  fix-proc-status-read.patch
df5b09b20dc5ca3a8e73f39089f8ef2dbc5060b35178067a41ab1fd075922a860458611d5b0e7beb7aca8c9c5853998aeb7529dbccff9ef39daf17cd997cd698  fix-python.patch
"
