void-packages/srcpkgs/python3-cairo/template

30 lines
879 B
Bash

# Template file for 'python3-cairo'
pkgname=python3-cairo
version=1.20.1
revision=4
build_style=python3-module
hostmakedepends="pkg-config python3"
makedepends="cairo-devel python3-devel"
depends="python3"
checkdepends="python3-pytest"
short_desc="Python3 bindings for the cairo graphics library"
maintainer="Orphaned <orphan@voidlinux.org>"
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=1ee72b035b21a475e1ed648e26541b04e5d7e753d75ca79de8c583b25785531b
do_check() {
python3 setup.py test
}
python3-cairo-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
lib32disabled= # override build style
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
}
}