summaryrefslogblamecommitdiff
path: root/user/py3-pycairo/APKBUILD
blob: 87de6f16660f86875c1d8dbfd2a3f4ad89d760fe (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11


                                                           
             






                                            
                                                                                        






















                                                 
                                                                                                                                                                    
# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
pkgname=py3-pycairo
pkgver=1.18.0
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/source/p/pycairo/pycairo-$pkgver.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
}

sha512sums="29af1eff8fc3ca942c6d7fcda8e5e004f01d1bfdab911f4ebb34213520922cf35c12d07bd18fe74a2c6d3c7f5a1aefd7fb5fe9b7cd310e6707b7451d5d5e18b0  pycairo-1.18.0.tar.gz"