summaryrefslogtreecommitdiffstats
path: root/testing/py-psutil/APKBUILD
blob: b397d907aacdb1fc1bce631743ef7baaeeb6c73c (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=2.1.1
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="python-dev"
makedepends="$depends_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="72a6b15d589fab11f6ca245b775bc3c6  psutil-2.1.1.tar.gz"
sha256sums="bf812a4aa6a41147d0e96e63d826eb7582fda6b54ad8f22534354b7f8ac45593  psutil-2.1.1.tar.gz"
sha512sums="c2194b49e450d243aaed4d846f95702e789dc422dc0199c04c8cd2f7695a2e3983dd7df21d7cc8aaec3abe38c19272ad958323c5c3e3eb9b548b507dd5b98587  psutil-2.1.1.tar.gz"