# Template file for 'python-sh'
pkgname=python-sh
version=1.12.13
revision=1
noarch=yes
wrksrc="${pkgname#*-}-${version}"
build_style=python-module
pycompile_module="sh.py"
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
short_desc="Python subprocess replacement (Python2)"
maintainer="pulux <pulux@pf4sh.de>"
license="MIT"
homepage="https://github.com/amoffat/sh"
distfiles="${PYPI_SITE}/s/sh/sh-${version}.tar.gz"
checksum=979928ca113cade663bb1a0ff710e3eb9147596cf28a7ee4c04f9d85804f7b9f

post_install() {
	vlicense LICENSE.txt
}

python3-sh_package() {
	noarch=yes
	depends="python3"
	pycompile_module="sh.py"
	short_desc="${short_desc/Python2/Python3}"
	pkg_install() {
		vmove usr/lib/python3*
		vlicense LICENSE.txt
	}
}
