31 lines
750 B
Bash
31 lines
750 B
Bash
# Template file for 'python-sh'
|
|
pkgname=python-sh
|
|
version=1.12.9
|
|
revision=2
|
|
wrksrc="${pkgname#*-}-${version}"
|
|
noarch=yes
|
|
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=579aa19bae7fe86b607df1afaf4e8537c453d2ce3d84e1d3957e099359a51677
|
|
|
|
post_install() {
|
|
vlicense LICENSE.txt
|
|
}
|
|
|
|
python3-sh_package() {
|
|
depends="python3"
|
|
noarch=yes
|
|
pycompile_module="sh.py"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE.txt
|
|
}
|
|
}
|