aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/iotop/APKBUILD
blob: e96e0bcf439c85c1d639e9a18752430f3ab1215a (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer:
pkgname=iotop
pkgver=0.6
pkgrel=0
pkgdesc="I/O monitoring tool"
url="http://guichaz.free.fr/iotop/"
arch="noarch"
license="GPL2"
depends="python"
depends_dev=""
makedepends="python-dev py-setuptools"
install=""
subpackages="$pkgname-doc"
source="http://guichaz.free.fr/iotop/files/iotop-$pkgver.tar.bz2"

_builddir="$srcdir"/iotop-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	python setup.py build || return 1
}

package() {
	cd "$_builddir"
	python setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

md5sums="5ef9456b26d7694abf3101a72e1e0d1d  iotop-0.6.tar.bz2"
sha256sums="3adea2a24eda49bbbaeb4e6ed2042355b441dbd7161e883067a02bfc8dcef75b  iotop-0.6.tar.bz2"
sha512sums="b1047da3bc46604447cc8ab22442a3a5381e1a79a6b176fe9ee8402ee5cebb959205407a6aeaffccccde9d2f67624ff8ee6717b051838f13ab88bf3a16db3ab9  iotop-0.6.tar.bz2"