summaryrefslogtreecommitdiff
path: root/user/py3-psutil/APKBUILD
blob: 3b58a225f4ea070af9064d0b1a19c1dc2fa40100 (plain) (blame)
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
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=py3-psutil
_pkgname=${pkgname#py3-}
pkgver=5.7.0
pkgrel=0
pkgdesc="Process and system utilities"
url="https://pypi.org/project/psutil/"
arch="all"
options="!check"  # Requires itself to be installed first
license="BSD-3-Clause"
depends="python3"
makedepends="python3-dev utmps-dev"
subpackages=""
source="https://files.pythonhosted.org/packages/source/p/$_pkgname/$_pkgname-$pkgver.tar.gz
	utmpx.patch
	"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	LIBS="-lutmps -lskarnet" python3 setup.py build
}

package() {
	mkdir -p "$pkgdir"
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="8cee64ab396dae79866e961aeabdb9a4174e1339bcd5c0a35f23fee97ca2a61c0cb08f7152d7e0db90c387400c5c6fb3da2dd2124ce9bf97dfffe6f3b4967981  psutil-5.7.0.tar.gz
5b0eea07856afeb0eff3268dc78bd3daf3491022e8a08c422db3eaad1b5e0da71429fe9e2e4b23f3eabf9669e7e4fb5a187c96aedbfe994692bb3e5a98fe2fc2  utmpx.patch"