add python3-cairo

This commit is contained in:
Bruce Liu 2014-12-18 15:48:19 +00:00
parent 0e888092c9
commit 077c9439af
3 changed files with 35 additions and 30 deletions

View File

@ -1,30 +0,0 @@
#
# Platform Packages for Chakra, part of chakra-project.org
#
pkgname=python2-gobject3
pkgbase=pygobject
pkgver=3.8.1
pkgrel=1
pkgdesc="Python2 bindings for GObject, including all introspection files"
arch=('x86_64')
url="https://live.gnome.org/PyGObject"
license=('LGPL')
depends=('python2' 'python2-cairo' 'gobject-introspection')
source=("http://ftp.gnome.org/pub/gnome/sources/$pkgbase/${pkgver::3}/pygobject-$pkgver.tar.xz")
options=('!libtool')
md5sums=('88265ec145e31a50b66386fcdeb91ce6')
build() {
cd "$pkgbase-$pkgver"
./configure --prefix=/usr
make
}
package() {
cd "$pkgbase-$pkgver"
make DESTDIR="$pkgdir" install
}

35
python3-cairo/PKGBUILD Normal file
View File

@ -0,0 +1,35 @@
# Maintainer: ugjka: ugis (dot) germanis (at) gmail (dot) com
pkgname=python3-cairo
pkgver=1.10.0
pkgrel=1
pkgdesc="Python bindings for the cairo graphics library"
arch=('x86_64')
url="http://www.cairographics.org/pycairo"
license=('LGPL3')
depends=('python3' 'cairo')
source=(http://cairographics.org/releases/pycairo-${pkgver}.tar.bz2
pycairo-1.10.0-waf-python3.4.patch)
md5sums=('e6fd3f2f1e6a72e0db0868c4985669c5'
'418e36055c75392f6501918d1c33d448')
build() {
cd pycairo-${pkgver}
sed -i 's:bin/env python:bin/env python3:' waf
# https://bugs.gentoo.org/show_bug.cgi?id=504342
patch -i "$srcdir/pycairo-1.10.0-waf-python3.4.patch"
# Ensure that ./waf has created the cached unpacked version
# of the wafadmin source tree.
# This will be created to a subdirectory like
# .waf3-1.5.18-a7b91e2a913ce55fa6ecdf310df95752
python3 ./waf --version
PYTHON=/usr/bin/python3 ./waf configure --prefix=/usr
PYTHON=/usr/bin/python3 ./waf build
}
package() {
cd pycairo-${pkgver}
./waf install --destdir="${pkgdir}"
}

Binary file not shown.