vp-build/srcpkgs/python-zc.lockfile/template

32 lines
867 B
Bash

# Template file for 'python-zc.lockfile'
pkgname=python-zc.lockfile
version=2.0
revision=2
archs=noarch
wrksrc="${pkgname#*-}-${version}"
build_style=python-module
pycompile_module="zc/lockfile"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-setuptools"
short_desc="Basic inter-process locks (Python2)"
maintainer="Lon Willett <xgit@lonw.net>"
license="ZPL-2.1"
homepage="https://github.com/zopefoundation/zc.lockfile"
distfiles="${PYPI_SITE}/z/zc.lockfile/zc.lockfile-${version}.tar.gz"
checksum=307ad78227e48be260e64896ec8886edc7eae22d8ec53e4d528ab5537a83203b
post_install() {
vlicense LICENSE.txt LICENSE
}
python3-zc.lockfile_package() {
archs=noarch
pycompile_module="zc/lockfile"
depends="python3-setuptools"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE.txt LICENSE
}
}