summaryrefslogtreecommitdiff
path: root/user/py3-pycairo
diff options
context:
space:
mode:
authorKiyoshi Aman <kiyoshi.aman+apkfission@gmail.com>2018-08-20 04:18:54 -0500
committerKiyoshi Aman <kiyoshi.aman+apkfission@gmail.com>2018-08-20 04:18:54 -0500
commite2ade7a331332e50dc6332caacc8a6af20bc49a3 (patch)
tree9f56011914df4a32de86ff5300e84c3eef650c2a /user/py3-pycairo
parentbcea27d86e36873e20bdbd57a8e27e9b9293debf (diff)
downloadpackages-e2ade7a331332e50dc6332caacc8a6af20bc49a3.tar.gz
packages-e2ade7a331332e50dc6332caacc8a6af20bc49a3.tar.bz2
packages-e2ade7a331332e50dc6332caacc8a6af20bc49a3.tar.xz
packages-e2ade7a331332e50dc6332caacc8a6af20bc49a3.zip
user/py3-pycairo: new package
Diffstat (limited to 'user/py3-pycairo')
-rw-r--r--user/py3-pycairo/APKBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/user/py3-pycairo/APKBUILD b/user/py3-pycairo/APKBUILD
new file mode 100644
index 000000000..b93a99c1e
--- /dev/null
+++ b/user/py3-pycairo/APKBUILD
@@ -0,0 +1,36 @@
+# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
+# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
+pkgname=py3-pycairo
+pkgver=1.17.1
+pkgrel=0
+pkgdesc="Python bindings for Cairo"
+url="https://pycairo.readthedocs.io/"
+arch="all"
+license="MIT AND (LGPL-2.1-only OR MPL-1.1)"
+makedepends="python3-dev cairo-dev meson"
+subpackages="$pkgname-dev"
+source="https://files.pythonhosted.org/packages/68/76/340ff847897296b2c8174dfa5a5ec3406e3ed783a2abac918cf326abad86/pycairo-$pkgver.tar.gz"
+sha512sums="b6a6af4afa4ac92020b375a72e6f8a7981e6628d4e68877a7fd08bd8ae3835063000b16214d84a40aff4c6b4cf0937236724631ae6dac368a9db0bf3837063fe pycairo-1.17.1.tar.gz"
+builddir="$srcdir/pycairo-$pkgver"
+
+build() {
+ cd "$builddir"
+ meson \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var \
+ --buildtype=release \
+ . output
+ ninja -C output
+}
+
+check() {
+ cd "$builddir"
+}
+
+package() {
+ cd "$builddir"
+ DESTDIR="$pkgdir" ninja -C output install
+}
+