summaryrefslogtreecommitdiff
path: root/user/py3-psutil/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-06-14 20:27:28 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-06-14 20:27:28 +0000
commit7f71b4f810faa662e95556aba5ddf03e495faa6e (patch)
tree91c5cea39f130f68d62e3d00c59fa3764877192a /user/py3-psutil/APKBUILD
parent307dbf497029637cff18e4752586fdec5646f5db (diff)
downloadpackages-7f71b4f810faa662e95556aba5ddf03e495faa6e.tar.gz
packages-7f71b4f810faa662e95556aba5ddf03e495faa6e.tar.bz2
packages-7f71b4f810faa662e95556aba5ddf03e495faa6e.tar.xz
packages-7f71b4f810faa662e95556aba5ddf03e495faa6e.zip
user/py3-psutil: new package
Diffstat (limited to 'user/py3-psutil/APKBUILD')
-rw-r--r--user/py3-psutil/APKBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/user/py3-psutil/APKBUILD b/user/py3-psutil/APKBUILD
new file mode 100644
index 000000000..66d9da144
--- /dev/null
+++ b/user/py3-psutil/APKBUILD
@@ -0,0 +1,30 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=py3-psutil
+_pkgname=${pkgname#py3-}
+pkgver=5.6.2
+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/${_pkgname:0:1}/$_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="ff41428b43c59ad948b8b4e6824943258abb30dc76cd042bdf7fe72d5aceb9bcbd2a2038a6a43d2b4c36eccae9007ef78779fe0cb5ee3caa68da9b1ba687b66d psutil-5.6.2.tar.gz
+5b0eea07856afeb0eff3268dc78bd3daf3491022e8a08c422db3eaad1b5e0da71429fe9e2e4b23f3eabf9669e7e4fb5a187c96aedbfe994692bb3e5a98fe2fc2 utmpx.patch"