vp-build/srcpkgs/python-py/template

30 lines
738 B
Bash

# Template file for 'python-py'
pkgname=python-py
version=1.4.34
revision=1
wrksrc="${pkgname/python-//}-${version}"
build_style=python-module
pycompile_module="py"
hostmakedepends="python-setuptools python3-setuptools"
short_desc="Python2 development support library"
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
license="MIT"
homepage="https://github.com/pytest-dev/py"
distfiles="https://github.com/pytest-dev/py/archive/${version}.tar.gz"
checksum=522e37eb34a4decf1cc43f1522d4c18c9a6aa8caaddc401627aba5432ee08970
noarch=yes
post_install() {
vlicense LICENSE
}
python3-py_package() {
noarch=yes
pycompile_module="py"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}