summaryrefslogtreecommitdiffstats
path: root/abs/core
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2018-02-16 17:42:38 (GMT)
committerBritney Fransen <brfransen@gmail.com>2018-02-16 17:42:38 (GMT)
commitb9ac986b27018159a2e1030772e47d53bf0ffbaf (patch)
treeda3753e792cb0461277b19add78cac3e5ee3dd03 /abs/core
parent49bc0e193d6f210bd96e3bc2d6a8a1a3fc311902 (diff)
downloadlinhes_pkgbuild-b9ac986b27018159a2e1030772e47d53bf0ffbaf.zip
linhes_pkgbuild-b9ac986b27018159a2e1030772e47d53bf0ffbaf.tar.gz
linhes_pkgbuild-b9ac986b27018159a2e1030772e47d53bf0ffbaf.tar.bz2
python-cairo: update to 1.16.2
Diffstat (limited to 'abs/core')
-rw-r--r--abs/core/python_modules/python-cairo/PKGBUILD43
-rw-r--r--abs/core/python_modules/python2-cairo/PKGBUILD31
2 files changed, 43 insertions, 31 deletions
diff --git a/abs/core/python_modules/python-cairo/PKGBUILD b/abs/core/python_modules/python-cairo/PKGBUILD
new file mode 100644
index 0000000..9f91cbb
--- /dev/null
+++ b/abs/core/python_modules/python-cairo/PKGBUILD
@@ -0,0 +1,43 @@
+# $Id$
+# Maintainer: Angel Velasquez <angvp@archlinux.org>
+# Maintainer: Jan de Groot <jgc@archlinux.org>
+
+pkgbase=python-cairo
+pkgname=(python-cairo python2-cairo)
+pkgver=1.16.2
+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=c74dc1e3589bd8a197582836c7db2ab400a988bb # tags/v1.16.2
+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'
+}
diff --git a/abs/core/python_modules/python2-cairo/PKGBUILD b/abs/core/python_modules/python2-cairo/PKGBUILD
deleted file mode 100644
index 574eca2..0000000
--- a/abs/core/python_modules/python2-cairo/PKGBUILD
+++ /dev/null
@@ -1,31 +0,0 @@
-# $Id$
-# Maintainer: Jan de Groot <jgc@archlinux.org>
-
-pkgname=python2-cairo
-pkgver=1.10.0
-pkgrel=3
-pkgdesc="Python2 bindings for the cairo graphics library"
-arch=('i686' 'x86_64')
-license=('LGPL' 'MPL')
-depends=('python2' 'cairo')
-provides=("pycairo=${pkgver}")
-conflicts=('pycairo')
-replaces=('pycairo')
-source=(http://cairographics.org/releases/py2cairo-${pkgver}.tar.bz2)
-url="http://www.cairographics.org/pycairo"
-md5sums=('20337132c4ab06c1146ad384d55372c5')
-
-build() {
- cd "${srcdir}/py2cairo-${pkgver}"
- sed -i 's:bin/env python:bin/env python2:' waf
- python2 ./waf --version
- pushd .waf-*
- popd
- PYTHON=/usr/bin/python2 ./waf configure --prefix=/usr
- PYTHON=/usr/bin/python2 ./waf build
-}
-
-package() {
- cd "${srcdir}/py2cairo-${pkgver}"
- PYTHON=/usr/bin/python2 ./waf install --destdir="${pkgdir}"
-}