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

  applypatch $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
"
