void-packages/srcpkgs/python3-cairo/template

29 lines
849 B
Bash

# Template file for 'python3-cairo'
pkgname=python3-cairo
version=1.17.1
revision=1
wrksrc="pycairo-${version}"
build_style=python3-module
hostmakedepends="pkg-config python3"
makedepends="cairo-devel python3-devel"
checkdepends="python3-pytest"
short_desc="Python3 bindings for the cairo graphics library"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="LGPL-2.1-or-later, MPL-1.1"
homepage="https://pycairo.readthedocs.io/"
distfiles="https://github.com/pygobject/pycairo/releases/download/v${version}/pycairo-${version}.tar.gz"
checksum=0f0a35ec923d87bc495f6753b1e540fd046d95db56a35250c44089fbce03b698
do_check() {
python3 setup.py test
}
python3-cairo-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
}
}