Date: Thursday, November 15, 2018 @ 20:07:26
  Author: arojas
Revision: 339735

archrelease: copy trunk to testing-x86_64

Added:
  python-cairo/repos/testing-x86_64/
  python-cairo/repos/testing-x86_64/PKGBUILD
    (from rev 339734, python-cairo/trunk/PKGBUILD)

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

Copied: python-cairo/repos/testing-x86_64/PKGBUILD (from rev 339734, 
python-cairo/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD                             (rev 0)
+++ testing-x86_64/PKGBUILD     2018-11-15 20:07:26 UTC (rev 339735)
@@ -0,0 +1,42 @@
+# Maintainer: Angel Velasquez <[email protected]>  
+# Maintainer: Jan de Groot <[email protected]>
+
+pkgbase=python-cairo
+pkgname=(python-cairo python2-cairo)
+pkgver=1.18.0
+pkgrel=1
+pkgdesc="Python bindings for the cairo graphics library"
+arch=('x86_64')
+url="https://pycairo.readthedocs.io/en/latest/";
+license=('LGPL2.1' 'MPL')
+makedepends=(python python2 cairo git)
+_commit=c666979e51c7b42404eadb5a118476cae757eea9  # tags/v1.18.0
+source=("git+https://github.com/pygobject/pycairo/#commit=$_commit";)
+sha256sums=('SKIP')
+
+pkgver() {
+  cd pycairo
+  git describe --tags | sed 's/^v//;s/-/+/g'
+}
+
+
+build() {
+  cd pycairo
+  python2 setup.py build
+  python setup.py build
+}
+
+package_python2-cairo() {
+  depends=('cairo' 'python2')
+  pkgdesc="Python2 bindings for the cairo graphics library"
+
+  cd pycairo
+  python2 setup.py install --skip-build --root="${pkgdir}" --optimize='1'
+}
+
+package_python-cairo() {
+  depends=('cairo' 'python')
+
+  cd pycairo
+  python setup.py install --skip-build --root="${pkgdir}" --optimize='1'
+}

Reply via email to