34 lines
992 B
Bash
34 lines
992 B
Bash
# Template file for 'python-psutil'
|
|
pkgname=python-psutil
|
|
version=5.0.1
|
|
revision=1
|
|
wrksrc="psutil-${version}"
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
makedepends="python-devel python3-devel"
|
|
pycompile_module="psutil"
|
|
short_desc="Cross-platform process and system utilities module for Python2"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
homepage="https://github.com/giampaolo/psutil"
|
|
license="3-clause-BSD"
|
|
distfiles="${PYPI_SITE}/p/psutil/psutil-${version}.tar.gz"
|
|
checksum=9d8b7f8353a2b2eb6eb7271d42ec99d0d264a9338a37be46424d56b4e473b39e
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-psutil_package() {
|
|
pycompile_module="psutil"
|
|
replaces="python3.4-psutil>=0"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|
|
python3.4-psutil_package() {
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-psutil>=${version}_${revision}"
|
|
}
|