diff options
author | Britney Fransen <brfransen@gmail.com> | 2018-09-06 16:35:27 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2018-09-06 16:35:27 (GMT) |
commit | 5669815ec3a539cf7b5ac7d8da2cbba3aeff44be (patch) | |
tree | f13051093a52f47f5954c2ee2a783bc2f0f62f96 /abs/core/python_modules/python-cairo/PKGBUILD | |
parent | 8d35f28049488f2585ef765bf48e7a58958fd587 (diff) | |
parent | 04697136037cb5341ee6c051f8aaa265c0400c82 (diff) | |
download | linhes_pkgbuild-5669815ec3a539cf7b5ac7d8da2cbba3aeff44be.zip linhes_pkgbuild-5669815ec3a539cf7b5ac7d8da2cbba3aeff44be.tar.gz linhes_pkgbuild-5669815ec3a539cf7b5ac7d8da2cbba3aeff44be.tar.bz2 |
Merge branch 'testing'
Diffstat (limited to 'abs/core/python_modules/python-cairo/PKGBUILD')
-rw-r--r-- | abs/core/python_modules/python-cairo/PKGBUILD | 43 |
1 files changed, 43 insertions, 0 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' +} |