#!/usr/bin/bash # JOBoRun : Jwm OpenBox Obarun RUNit # Maintainer : Joe Bo Run # PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname" # Website : https://pozol.eu #-----------------------------------------| DESCRIPTION |--------------------------------------- pkgname=python-cairo pkgver=1.26.0 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 sha256sums=(2dddd0a874fbddb21e14acd9b955881ee1dc6e63b9c549a192d613a907f9cbeb # pycairo-1.26.0.tar.gz 9f86b80bb1f117f55613bf6b5f04c76ed42d2aaf2c7f7b9fb3ee8294703854e6) # pycairo-1.26.0.tar.gz.sig ## df4ef2250bd5c83d35d24a38c049a0e8f1dfd83788884eabf9f8a8ebfd5e166d python-cairo-1.26.0-01-x86_64.pkg.tar.lz