blob: f8acd66c454bcce1ec76506aed71cfdacc1315c1 (
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
41
42
43
44
45
46
47
48
49
|
# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
pkgname=iotop-git
pkgver=20141018
pkgrel=1
pkgdesc="Python program with a top like UI used to show of behalf of which process is the I/O going on"
arch=('any')
url="http://guichaz.free.fr/iotop/"
license=('GPL')
depends=('python')
makedepends=('git')
provides=('iotop')
conflicts=('iotop')
source=()
md5sums=()
_gitroot=git://repo.or.cz/iotop.git
_gitname=iotop
prepare() {
cd "${srcdir}"
msg "Connecting to GIT server...."
if [ -d "${srcdir}"/$_gitname ] ; then
cd $_gitname && git pull origin
msg "The local files are updated."
else
git clone $_gitroot
fi
msg "GIT checkout done or server timeout"
msg "Starting make..."
if [ -d "${srcdir}"/$_gitname-build ] ; then
rm -r "${srcdir}"/$_gitname-build
cp -r "${srcdir}"/$_gitname "${srcdir}"/$_gitname-build
else
cp -r "${srcdir}"/$_gitname "${srcdir}"/$_gitname-build
fi
}
package() {
cd "${srcdir}"/$_gitname-build
python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
mv "${pkgdir}"/usr/sbin "${pkgdir}"/usr/bin
}
|