void-packages/srcpkgs/python-sh/template
2017-06-07 14:17:53 +02:00

31 lines
751 B
Bash

# Template file for 'python-sh'
pkgname=python-sh
version=1.12.14
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=b52bf5833ed01c7b5c5fb73a7f71b3d98d48e9b9b8764236237bdc7ecae850fc
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
}
}