blob: c28d51514251105ec3620e8d4d5783a21471d673 (
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
|
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=py-psutil
_pkgname=psutil
pkgver=4.0.0
pkgrel=0
pkgdesc="A cross-platform process and system utilities module for Python"
url="https://github.com/giampaolo/psutil"
arch="all"
license="BSD"
depends=""
depends_dev=""
makedepends="$depends_dev linux-headers python-dev"
install=""
subpackages=""
source="http://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
_builddir="$srcdir"/$_pkgname-$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 --root=$pkgdir/ --optimize=1 || return 1
}
md5sums="6f327b7cc813ad6d4584be54ac89bae8 psutil-4.0.0.tar.gz"
sha256sums="1a7c672f9ee79c84ff16b8de6f6040080f0e25002ac47f115f4a54aa88e5cfcd psutil-4.0.0.tar.gz"
sha512sums="08bd93549660e8ce5816391a1028bc3737165d060e7c12543aab6e9b3e0d8268cd31929f61bcae845d8929d6f5ecd52e2cd62708ed0c860958b78f9937e7443d psutil-4.0.0.tar.gz"
|