void-packages/srcpkgs/python-psutil/template

31 lines
836 B
Bash
Raw Normal View History

2013-08-03 23:59:23 +00:00
# Template file for 'python-psutil'
pkgname=python-psutil
2015-02-12 18:57:00 +00:00
version=2.2.1
2014-09-22 15:27:44 +00:00
revision=1
wrksrc="psutil-${version}"
2015-02-12 18:57:00 +00:00
build_style=python-module
python_versions="2.7 3.4"
hostmakedepends="python-setuptools python3.4-setuptools"
makedepends="python-devel python3.4-devel"
2014-09-22 15:27:44 +00:00
pycompile_module="psutil"
maintainer="Juan RP <xtraeme@gmail.com>"
2014-09-22 15:27:44 +00:00
homepage="https://github.com/giampaolo/psutil"
2013-08-03 23:59:23 +00:00
license="BSD"
2014-09-22 15:27:44 +00:00
short_desc="Cross-platform process and system utilities module for Python2"
distfiles="${PYPI_SITE}/p/psutil/psutil-${version}.tar.gz"
2015-02-12 18:57:00 +00:00
checksum=a0e9b96f1946975064724e242ac159f3260db24ffa591c3da0a355361a3a337f
2014-09-22 15:27:44 +00:00
pre_build() {
# remove shebangs
sed -i '1d' psutil/*.py
}
python3.4-psutil_package() {
pycompile_version="3.4"
pycompile_module="psutil"
short_desc="${short_desc/Python2/Python3.4}"
pkg_install() {
2014-09-22 15:27:44 +00:00
vmove usr/lib/python3.4
}
}