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.1.2
revision=1
wrksrc="${pkgname#*-}-${version}"
build_style=python-module
python_versions="2.7 3.4"
hostmakedepends="python-setuptools python3.4-setuptools"
makedepends="python-devel python3.4-devel"
pycompile_module="zope/interface"
short_desc="Zope interfaces for Python2"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="https://pypi.python.org/pypi/zope.interface"
license="ZPL"
distfiles="${PYPI_SITE}/z/zope.interface/zope.interface-${version}.tar.gz"
checksum=441fefcac1fbac57c55239452557d3598571ab82395198b2565a29d45d1232f6
post_install() {
# delete C source
find ${DESTDIR} -type f -name '*.c' -delete
# remove setuptools from requires.txt
find ${DESTDIR} -type f -name requires.txt -exec sed -i '/^setuptools$/d' {} \;
vlicense LICENSE.txt
}
python3.4-zope.interface_package() {
pycompile_version="3.4"
pycompile_module="zope/interface"
short_desc="${short_desc/Python2/Python3.4}"
pkg_install() {
vmove usr/lib/python3.4
vlicense ${wrksrc}/LICENSE.txt
}
}