jobextra/python-cairo/PKGBUILD
2023-10-24 02:41:28 +03:00

68 lines
2 KiB
Bash

#!/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.25.1
pkgrel=01
pkgdesc="Python bindings for the cairo graphics library"
url="https://pycairo.readthedocs.io/en/latest/"
depends=(cairo python)
#makedepends=(git python-setuptools)
makedepends=(meson)
checkdepends=(python-pytest)
source=(https://github.com/pygobject/pycairo/releases/download/v$pkgver/pycairo-$pkgver.tar.gz{,.sig})
#source=("git+https://github.com/pygobject/pycairo/#commit=$_commit")
#pkgver() {
# cd pycairo-$pkgver
## cd pycairo
# git describe --tags | sed 's/^v//;s/-/+/g'
#}
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"
}
# docs are docs, arch docs are good enough for us
#package_python-cairo-docs() {
# pkgdesc="Developer documentation for Pycairo"
# depends=()
#
# python -m sphinx -b html pycairo-$pkgver/docs "$pkgdir/usr/share/doc/pycairo/html"
# rm -r "$pkgdir/usr/share/doc/pycairo/html/.doctrees"
#}
#
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=(LGPL2.1 MPL)
validpgpkeys=(0EBF782C5D53F7E5FB02A66746BD761F7A49B0EC) # 46BD761F7A49B0EC: "Christoph Reiter <reiter.christoph@gmail.com>
sha256sums=(7e2be4fbc3b4536f16db7a11982cbf713e75069a4d73d44fe5a49b68423f5c0c # pycairo-1.25.1.tar.gz
2159150620c32c4fb07f103ec302c0d9cef201f898edf934b321b1abf86f1491) # pycairo-1.25.1.tar.gz.sig
## f7259deeba2dcd1370e2d4473de2e2183a85f40900a7e7163187a997680b1032 python-cairo-1.25.1-01-x86_64.pkg.tar.lz