diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-09-09 16:55:59 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-09-09 16:55:59 -0300 |
commit | df3a49f6a25bb537cd5ef92baf12cf4e576e0d61 (patch) | |
tree | a917abe51ffab987f5a967507073aee0ab35ffc0 /community/py3-psutil | |
parent | 846c38708b62190c9b7719792ea6cab11cb464da (diff) | |
download | aports-df3a49f6a25bb537cd5ef92baf12cf4e576e0d61.tar.bz2 aports-df3a49f6a25bb537cd5ef92baf12cf4e576e0d61.tar.xz |
community/py3-psutil: rename from py-psutil
Diffstat (limited to 'community/py3-psutil')
-rw-r--r-- | community/py3-psutil/APKBUILD | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/community/py3-psutil/APKBUILD b/community/py3-psutil/APKBUILD new file mode 100644 index 0000000000..1586919d3f --- /dev/null +++ b/community/py3-psutil/APKBUILD @@ -0,0 +1,51 @@ +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=py-psutil +_pkgname=psutil +pkgver=5.6.3 +pkgrel=0 +pkgdesc="A cross-platform process and system utilities module for Python" +url="https://github.com/giampaolo/psutil" +arch="all" +license="BSD" +makedepends="$depends_dev linux-headers python2-dev python3-dev" +subpackages="py3-$_pkgname:_py3 py2-$_pkgname:_py2" +source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" +builddir="$srcdir/$_pkgname-$pkgver" + +build() { + cd "$builddir" + python2 setup.py build + python3 setup.py build +} + +check() { + cd "$builddir" + python2 setup.py check + python3 setup.py check +} + + +package() { + mkdir -p "$pkgdir" +} + +_py() { + local python="$1" + pkgdesc="$pkgdesc - $python" + install_if="$pkgname=$pkgver-r$pkgrel $python" + + cd "$builddir" + $python setup.py install --prefix=/usr --root="$subpkgdir" +} + +_py2() { + replaces="$pkgname" + _py python2 +} + +_py3() { + _py python3 +} + +sha512sums="62cf120c9391705bd393d6554afa32d672470b61ebb3c0e7458bad26134b784175ba64d3eff119ace6def2aebc97df73cd0c9d213776176ce39c3d47da3f3d9c psutil-5.6.3.tar.gz" |