#!/usr/bin/bash
# JOBoRun		: Jwm OpenBox Obarun RUNit
# Maintainer	: Joe Bo Run <joborun@disroot.org>
# PkgSource		: url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website		: https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------

pkgname=python-cairo
pkgver=1.21.0
pkgrel=01
pkgdesc="Python bindings for the cairo graphics library"
arch=('x86_64')
url="https://pycairo.readthedocs.io/en/latest/"
depends=(cairo python)
makedepends=(python-setuptools)
checkdepends=(python-pytest)
source=(https://github.com/pygobject/pycairo/releases/download/v$pkgver/pycairo-$pkgver.tar.gz{,.sig})

build() {
  cd pycairo-$pkgver
  python setup.py build
}

#check() {
#  cd pycairo-$pkgver
#  python setup.py test
#}

package() {
  cd pycairo-$pkgver
  python setup.py install --root="$pkgdir" --skip-build --optimize=1
}

#---- license gpg-key sha256sums ----

license=('LGPL2.1' 'MPL')

validpgpkeys=(0EBF782C5D53F7E5FB02A66746BD761F7A49B0EC) # Christoph Reiter <reiter.christoph@gmail.com>

sha256sums=(251907f18a552df938aa3386657ff4b5a4937dde70e11aa042bc297957f4b74b # pycairo-1.21.0.tar.gz
	85a49d1e1fc29d3f57698bf3acafbaa2c4327dbe4de221de9b1686a83e695593) # pycairo-1.21.0.tar.gz.sig
