From e2ade7a331332e50dc6332caacc8a6af20bc49a3 Mon Sep 17 00:00:00 2001 From: Kiyoshi Aman Date: Mon, 20 Aug 2018 04:18:54 -0500 Subject: user/py3-pycairo: new package --- user/py3-pycairo/APKBUILD | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 user/py3-pycairo/APKBUILD (limited to 'user/py3-pycairo') 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 +# Maintainer: Kiyoshi Aman +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 +} + -- cgit v1.2.3-70-g09d2