vp-build/srcpkgs/python-sh/template

32 lines
751 B
Bash

# Template file for 'python-sh'
pkgname=python-sh
version=1.12.11
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=6c12be3df55eb2dcd1528fe56f81e52be5b985df42cb34a22171ab7fe986185a
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
}
}