Date: Thursday, April 6, 2023 @ 12:41:50
  Author: felixonmars
Revision: 472732

archrelease: copy trunk to staging-x86_64

Added:
  python-cairo/repos/staging-x86_64/
  python-cairo/repos/staging-x86_64/PKGBUILD
    (from rev 472731, python-cairo/trunk/PKGBUILD)
  python-cairo/repos/staging-x86_64/keys/

----------+
 PKGBUILD |   40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

Copied: python-cairo/repos/staging-x86_64/PKGBUILD (from rev 472731, 
python-cairo/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD                             (rev 0)
+++ staging-x86_64/PKGBUILD     2023-04-06 12:41:50 UTC (rev 472732)
@@ -0,0 +1,40 @@
+# Contributor: Angel Velasquez <[email protected]>  
+# Contributor: Jan de Groot <[email protected]>
+
+pkgname=python-cairo
+pkgver=1.23.0
+pkgrel=4
+pkgdesc="Python bindings for the cairo graphics library"
+url="https://pycairo.readthedocs.io/en/latest/";
+arch=(x86_64)
+license=(LGPL2.1 MPL)
+depends=(cairo python)
+makedepends=(meson)
+checkdepends=(python-pytest)
+source=(https://github.com/pygobject/pycairo/releases/download/v$pkgver/pycairo-$pkgver.tar.gz{,.sig})
+sha256sums=('9b61ac818723adc04367301317eb2e814a83522f07bbd1f409af0dada463c44c'
+            'SKIP')
+validpgpkeys=(0EBF782C5D53F7E5FB02A66746BD761F7A49B0EC) # Christoph Reiter 
<[email protected]>
+
+prepare() {
+  cd pycairo-$pkgver
+}
+
+build() {
+  arch-meson pycairo-$pkgver build
+  meson compile -C build
+}
+
+check() {
+  meson test -C build --print-errorlogs
+}
+
+package() {
+  meson install -C build --destdir="$pkgdir"
+
+  # compile Python bytecode
+  python -m compileall -d /usr/lib "$pkgdir/usr/lib"
+  python -O -m compileall -d /usr/lib "$pkgdir/usr/lib"
+}
+
+# vim:set sw=2 sts=-1 et:

Reply via email to