aboutsummaryrefslogtreecommitdiffstats
path: root/main/py2-cairo
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2017-04-12 01:08:21 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2017-04-12 01:36:50 +0200
commit969f95786ec3138e495bf4e42ef9f3c97c761f25 (patch)
tree32f6d85f7b016958c0f1bd7d4e726e3a0687ae57 /main/py2-cairo
parent1539c9ae587f5315ace08f0828ed055482a31d21 (diff)
downloadaports-969f95786ec3138e495bf4e42ef9f3c97c761f25.tar.bz2
aports-969f95786ec3138e495bf4e42ef9f3c97c761f25.tar.xz
main/py-cairo: rename to py2-cairo
Diffstat (limited to 'main/py2-cairo')
-rw-r--r--main/py2-cairo/APKBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/main/py2-cairo/APKBUILD b/main/py2-cairo/APKBUILD
new file mode 100644
index 0000000000..e922ff6aec
--- /dev/null
+++ b/main/py2-cairo/APKBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=py2-cairo
+_pkgname=py2cairo
+pkgver=1.10.0
+pkgrel=0
+pkgdesc="Python bindings for the cairo graphics library"
+url="http://cairographics.org/pycairo/"
+arch="all"
+license="LGPL2+"
+options="!check"
+depends=""
+makedepends="python2-dev cairo-dev"
+replaces=py-cairo
+install=""
+subpackages="$pkgname-dev"
+source="http://cairographics.org/releases/$_pkgname-$pkgver.tar.bz2"
+
+builddir="$srcdir"/$_pkgname-$pkgver
+
+build() {
+ cd "$builddir"
+ ./waf configure --prefix=/usr || return 1
+ ./waf build || return 1
+}
+
+package() {
+ cd "$builddir"
+ ./waf install --destdir="${pkgdir}" || return 1
+}
+
+md5sums="20337132c4ab06c1146ad384d55372c5 py2cairo-1.10.0.tar.bz2"