void-packages/srcpkgs/python-subprocess32/template

25 lines
732 B
Bash

# Template file for 'python-subprocess32'
pkgname=python-subprocess32
version=3.5.2
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=eb2b989cf03ffc7166339eb34f1aa26c5ace255243337b1e22dab7caa1166687
pre_build() {
if [ "$CROSS_BUILD" ]; then
sed -i 's/^cross_compiling=no/cross_compiling=yes/' configure
fi
}
post_install() {
vlicense LICENSE
}