void-packages/srcpkgs/python-sh/template

32 lines
751 B
Bash
Raw Normal View History

2017-02-02 21:24:23 +01:00
# Template file for 'python-sh'
pkgname=python-sh
2017-03-14 14:09:55 +01:00
version=1.12.11
2017-03-10 10:17:55 +01:00
revision=1
2017-02-02 21:24:23 +01:00
noarch=yes
2017-03-10 10:17:55 +01:00
wrksrc="${pkgname#*-}-${version}"
2017-02-02 21:24:23 +01:00
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"
2017-03-14 14:09:55 +01:00
checksum=6c12be3df55eb2dcd1528fe56f81e52be5b985df42cb34a22171ab7fe986185a
2017-02-02 21:24:23 +01:00
post_install() {
vlicense LICENSE.txt
}
python3-sh_package() {
noarch=yes
2017-03-10 10:17:55 +01:00
depends="python3"
pycompile_module="sh.py"
2017-02-02 21:24:23 +01:00
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE.txt
}
}