# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py3-atspi
pkgver=2.46.1
pkgrel=1
pkgdesc="Python client bindings for D-Bus AT-SPI"
url="https://www.freedesktop.org/wiki/Accessibility/AT-SPI2/"
arch="noarch"
license="GPL-2.0-or-later"
depends="python3 py3-gobject3"
makedepends="python3-dev py3-gobject3-dev"
options="!check" # Don't work with python3
subpackages="$pkgname-pyc"
source="https://download.gnome.org/sources/pyatspi/${pkgver%.*}/pyatspi-$pkgver.tar.xz"
builddir="$srcdir/pyatspi-$pkgver"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
69c1c4c31bef430083a1c9af98ba6b2f1b3d9eec0a5f03982b980838bcf86933069a90d7314d2e5501d5988a453d0a803ad239eca5b98f08cc3bf7dc8d4a7c0c  pyatspi-2.46.1.tar.xz
"
