void-packages/srcpkgs/python-sh/template

30 lines
703 B
Bash

# Template file for 'python-sh'
pkgname=python-sh
version=1.13.1
revision=1
archs=noarch
wrksrc="${pkgname#*-}-${version}"
build_style=python-module
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=97a3d2205e3c6a842d87ebbc9ae93acae5a352b1bc4609b428d0fd5bb9e286a3
post_install() {
vlicense LICENSE.txt
}
python3-sh_package() {
archs=noarch
depends="python3"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE.txt
}
}