summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
+}
+