vp-build/srcpkgs/python-cairocffi/template

32 lines
837 B
Bash

# Template file for 'python-cairocffi'
pkgname=python-cairocffi
version=0.9.0
revision=1
noarch=yes
wrksrc="cairocffi-${version}"
build_style=python-module
pycompile_module="cairocffi"
hostmakedepends="python-setuptools python3-setuptools python-cffi python3-cffi"
depends="python-cffi"
short_desc="CFFI-based cairo bindings for Python2"
homepage="https://github.com/Kozea/cairocffi"
license="BSD-3-Clause"
maintainer="Alessio Sergi <al3hex@gmail.com>"
distfiles="${PYPI_SITE}/c/cairocffi/cairocffi-${version}.tar.gz"
checksum=15386c3a9e08823d6826c4491eaccc7b7254b1dc587a3b9ce60c350c3f990337
post_install() {
vlicense LICENSE
}
python3-cairocffi_package() {
noarch=yes
depends="python3-cffi"
pycompile_module="cairocffi"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}