diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-09-05 10:38:14 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-09-05 10:38:18 +0000 |
commit | b68191add7d6d65772ab17b126504eb822d30767 (patch) | |
tree | 59a858a60b770fd643e2ca0fb1152625dd255a2b /community/py-psutil | |
parent | ac40a1844786a45e797bf7f4a20dced042166c1a (diff) | |
download | aports-b68191add7d6d65772ab17b126504eb822d30767.tar.bz2 aports-b68191add7d6d65772ab17b126504eb822d30767.tar.xz |
community/py-psutil: upgrade to 4.3.1, enhanced APKBUILD
Diffstat (limited to 'community/py-psutil')
-rw-r--r-- | community/py-psutil/APKBUILD | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/community/py-psutil/APKBUILD b/community/py-psutil/APKBUILD index 72e1183ad..cf7f23d31 100644 --- a/community/py-psutil/APKBUILD +++ b/community/py-psutil/APKBUILD @@ -2,15 +2,14 @@ # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=py-psutil _pkgname=psutil -pkgver=4.3.0 -pkgrel=1 +pkgver=4.3.1 +pkgrel=0 pkgdesc="A cross-platform process and system utilities module for Python" url="https://github.com/giampaolo/psutil" arch="noarch" license="BSD" depends="" -depends_dev="" -makedepends="$depends_dev linux-headers python-dev python3-dev" +makedepends="$depends_dev linux-headers python2-dev python3-dev" install="" subpackages="py3-$_pkgname:_py3 py2-$_pkgname:_py2" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" @@ -19,26 +18,21 @@ builddir="$srcdir"/$_pkgname-$pkgver build() { cd "$builddir" - python setup.py build || return 1 + python2 setup.py build || return 1 python3 setup.py build || return 1 } package() { - cd "$builddir" - python setup.py install --root=$pkgdir/ --optimize=1 || return 1 - python3 setup.py install --root=$pkgdir/ --optimize=1 || return 1 + mkdir -p "$pkgdir" } - _py() { local python=$1 pkgdesc="$pkgdesc - $python" arch="all" - install_if="$pkgname=$pkgver-r$pkgrel $python" - local dir=$($python -c 'import sysconfig; print(sysconfig.get_path("stdlib"))') - - mkdir -p "$subpkgdir"${dir} - mv "$pkgdir"${dir}/* "$subpkgdir"${dir} + install_if="$pkgname=$pkgver-r$pkgrel $python" + cd "$builddir" + $python setup.py install --prefix=/usr --root="$subpkgdir" } _py2() { @@ -52,6 +46,7 @@ _py3() { -md5sums="ca97cf5f09c07b075a12a68b9d44a67d psutil-4.3.0.tar.gz" -sha256sums="86197ae5978f216d33bfff4383d5cc0b80f079d09cf45a2a406d1abb5d0299f0 psutil-4.3.0.tar.gz" -sha512sums="84286e989375545f609ef2847feff64d49b0397781cad30da5fa555f02807c97b4f0721f2a79f46c4bee754c93c57c8ea94b435920c1ecc8c46fe4f663444593 psutil-4.3.0.tar.gz" + +md5sums="199a366dba829c88bddaf5b41d19ddc0 psutil-4.3.1.tar.gz" +sha256sums="38f74182fb9e15cafd0cdf0821098a95cc17301807aed25634a18b66537ba51b psutil-4.3.1.tar.gz" +sha512sums="07b3d23afd6ce792fb1d499a69c30cef1b12d211582d9bbcdc8a1b7799f67a0133ab6aba08c50bfe97413b1062429f78417925154213c898d88c595b15489778 psutil-4.3.1.tar.gz" |