void-packages/srcpkgs/python-cairocffi/template

34 lines
1003 B
Bash

# Template file for 'python-cairocffi'
pkgname=python-cairocffi
version=0.8.0
revision=1
noarch=yes
wrksrc="cairocffi-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools python-cffi python3-cffi"
depends="python-cffi"
pycompile_module="cairocffi"
short_desc="CFFI-based cairo bindings for Python2"
homepage="https://github.com/SimonSapin/cairocffi"
license="BSD"
maintainer="Alessio Sergi <al3hex@gmail.com>"
distfiles="${PYPI_SITE}/c/cairocffi/cairocffi-${version}.tar.gz"
checksum=65f21e6786e2b255ab1d3fda53a365a3565bb1808cabbbe59d99a797c61d3545
python3-cairocffi_package() {
noarch=yes
depends="python3-cffi"
pycompile_module="cairocffi"
replaces="python3.4-cairocffi>=0"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
}
}
python3.4-cairocffi_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-cairocffi>=${version}_${revision}"
}