summaryrefslogtreecommitdiff
path: root/manualPorts/iotop/Pkgfile
blob: ef27c60db836c71e9e3b64089e50cd945a4ae8fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Description:  Top like program to display I/O load.
# URL:          http://guichaz.free.fr/iotop/
# Maintainer:   Erich Eckner, crux at eckner dot net
# Contributor:  Lin SiFuh, #crux at freenode dot net
# Depends on:   python3

name=iotop
version=0.6
release=1
source=(http://guichaz.free.fr/${name}/files/${name}-${version}.tar.bz2 \
	      0001-Make-setp.py-compatible-with-python3.patch)

build() {

	cd "${name}"-"${version}"

	chmod ag+r iotop.8

	patch -p1 -i "${SRC}"/0001-Make-setp.py-compatible-with-python3.patch

	/usr/bin/python3 setup.py install --root="${PKG}" --prefix=/usr

	rm -r "${PKG}"/usr/lib/python*/site-packages/iotop-*.egg-info

}