jobextra/python-cairo/PKGBUILD

52 lines
1.4 KiB
Bash
Raw Normal View History

2022-06-26 20:57:41 +02:00
#!/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=(git python-setuptools)
_commit=7f7869f4139dbcc84a6f688a321516cb25cea1b0 # tags/v1.21.0
#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
git describe --tags | sed 's/^v//;s/-/+/g'
}
build() {
cd pycairo
python setup.py build
}
#check() {
# cd pycairo-$pkgver
# python setup.py test
#}
package() {
cd pycairo
python setup.py install --skip-build --root="$pkgdir" --optimize='1'
}
#---- license gpg-key sha256sums ----
license=('LGPL2.1' 'MPL')
validpgpkeys=(0EBF782C5D53F7E5FB02A66746BD761F7A49B0EC) # 46BD761F7A49B0EC: "Christoph Reiter <reiter.christoph@gmail.com>
#sha256sums=(251907f18a552df938aa3386657ff4b5a4937dde70e11aa042bc297957f4b74b # pycairo-1.21.0.tar.gz
# 85a49d1e1fc29d3f57698bf3acafbaa2c4327dbe4de221de9b1686a83e695593) # pycairo-1.21.0.tar.gz.sig
sha256sums=('SKIP')