# Contributor: Francesco Colista <fcolista@alpinelinux.org> # Maintainer: Francesco Colista <fcolista@alpinelinux.org> setvar pkgname = 'py-psutil' setvar _pkgname = 'psutil' setvar pkgver = '5.3.1' setvar pkgrel = '0' setvar pkgdesc = ""A cross-platform process and system utilities module for Python"" setvar url = ""https://github.com/giampaolo/psutil"" setvar arch = ""all"" setvar license = ""BSD"" setvar makedepends = ""$depends_dev linux-headers python2-dev python3-dev"" setvar subpackages = ""py3-$_pkgname:_py3 py2-$_pkgname:_py2"" setvar source = ""https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"" setvar builddir = ""$srcdir/$_pkgname-$pkgver"" proc check { cd $builddir python2 setup.py check python3 setup.py check } proc build { cd $builddir python2 setup.py build python3 setup.py build } proc package { mkdir -p $pkgdir } proc _py { local python="$1" setvar pkgdesc = ""$pkgdesc - $python"" setvar install_if = ""$pkgname=$pkgver-r$pkgrel $python"" cd $builddir $python setup.py install --prefix=/usr --root="$subpkgdir" } proc _py2 { setvar replaces = "$pkgname" _py python2 } proc _py3 { _py python3 } setvar sha512sums = ""93bfadb19e603f7ccc7eedfc91aea05af41f2aeeeac1f2f11518b011c53f1672e07d550e6db6999fd3574c6b49adf4ffcb1a68f1066e8851be12689b0daf9595 psutil-5.3.1.tar.gz""