void-packages/srcpkgs/python3-cairo/template
2025-02-17 22:37:36 -05:00

32 lines
1 KiB
Bash

# Template file for 'python3-cairo'
pkgname=python3-cairo
version=1.27.0
revision=1
build_style=meson
hostmakedepends="pkg-config python3-packaging-bootstrap"
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-only, 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=5cb21e7a00a2afcafea7f14390235be33497a2cce53a98a19389492a60628430
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
}
}