void-packages/srcpkgs/python-zope.interface/template

35 lines
1.0 KiB
Bash

# Template file for 'python-zope.interface'
pkgname=python-zope.interface
version=4.4.3
revision=1
wrksrc="${pkgname#*-}-${version}"
build_style=python-module
pycompile_module="zope"
hostmakedepends="python-setuptools python3-setuptools"
makedepends="python-devel python3-devel"
depends="python-setuptools"
short_desc="Zope interfaces for Python2"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="https://github.com/zopefoundation/zope.interface"
license="ZPL-2.1"
distfiles="${PYPI_SITE}/z/zope.interface/zope.interface-${version}.tar.gz"
checksum=d6d26d5dfbfd60c65152938fcb82f949e8dada37c041f72916fef6621ba5c5ce
post_install() {
# zope.interface provides the zope namespace
for py_sitelib in $py2_sitelib $py3_sitelib; do
vinstall src/zope/__init__.py 644 ${py_sitelib}/zope
done
vlicense LICENSE.txt LICENSE
}
python3-zope.interface_package() {
pycompile_module="zope"
depends="python3-setuptools"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE.txt LICENSE
}
}