# Maintainer: Natanael Copa pkgname=py3-cairo pkgver=1.24.0 pkgrel=0 pkgdesc="Python3 bindings for the cairo graphics library" url="http://cairographics.org/pycairo/" arch="all" license="LGPL-2.0-or-later" makedepends="python3-dev cairo-dev meson" checkdepends="py3-pytest" subpackages="$pkgname-pyc $pkgname-dev" source="https://github.com/pygobject/pycairo/releases/download/v$pkgver/pycairo-$pkgver.tar.gz" builddir="$srcdir"/pycairo-$pkgver replaces="py-cairo" # Backwards compatibility provides="py-cairo=$pkgver-r$pkgrel" # Backwards compatibility build() { abuild-meson \ -Db_lto=true \ -Dtests="$(want_check && echo true || echo false)" \ . output meson compile -C output } check() { meson test --print-errorlogs --no-rebuild -C output } package() { DESTDIR="$pkgdir" meson install --no-rebuild -C output python3 -m compileall "$pkgdir"/usr/lib } sha512sums=" bbc160bc9c3c9365018c680f6a69347bc222cdaec10ea48d18aedd0341048df74973d3299d783662adf02b414874824660da10943d88f64c30451d3fdccc63fb pycairo-1.24.0.tar.gz "