void-packages/srcpkgs/python-sh/template

32 lines
751 B
Bash

# Template file for 'python-sh'
pkgname=python-sh
version=1.12.10
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=599dc8c1678f6c3a905bdf6da7d5943cf4be542ed4ce4ee49e5e392983b1ff8b
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
}
}