void-packages/srcpkgs/python3-cairo/template

33 lines
1001 B
Bash

# Template file for 'python3-cairo'
pkgname=python3-cairo
version=1.24.0
revision=1
build_style=meson
hostmakedepends="pkg-config"
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/"
changelog="https://raw.githubusercontent.com/pygobject/pycairo/main/NEWS"
distfiles="https://github.com/pygobject/pycairo/releases/download/v${version}/pycairo-${version}.tar.gz"
checksum=1444d52f1bb4cc79a4a0c0fe2ccec4bd78ff885ab01ebe1c0f637d8392bcafb6
if [ "$XBPS_CHECK_PKGS" ]; then
configure_args="-Dtests=true"
else
configure_args="-Dtests=false"
fi
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
}
}