void-packages/srcpkgs/python-subprocess32/template

25 lines
732 B
Bash

# Template file for 'python-subprocess32'
pkgname=python-subprocess32
version=3.5.3
revision=1
wrksrc="subprocess32-${version}"
build_style=python2-module
pycompile_module="subprocess32.py"
hostmakedepends="python-setuptools"
makedepends="python-devel"
short_desc="Backport of subprocess module from Python 3.x"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://github.com/google/python-subprocess32"
license="Python-2.0"
distfiles="${PYPI_SITE}/s/subprocess32/subprocess32-${version}.tar.gz"
checksum=6bc82992316eef3ccff319b5033809801c0c3372709c5f6985299c88ac7225c3
pre_build() {
if [ "$CROSS_BUILD" ]; then
sed -i 's/^cross_compiling=no/cross_compiling=yes/' configure
fi
}
post_install() {
vlicense LICENSE
}