# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: 
pkgname=at-spi2-atk
pkgver=2.34.1
pkgrel=0
pkgdesc="GTK+ module to bridge ATK to D-Bus at-spi"
url="https://wiki.linuxfoundation.org/accessibility/d-bus"
arch="all"
options="!check"  # Requires dbus daemon running.
license="LGPL-2.0+"
depends=""
depends_dev="atk-dev dbus-dev"
makedepends="$depends_dev at-spi2-core-dev glib-dev intltool libxml2-dev meson
	ninja"
subpackages="$pkgname-dev"
source="https://download.gnome.org/sources/at-spi2-atk/${pkgver%.*}/at-spi2-atk-$pkgver.tar.xz"

build() {
	meson -Dprefix=/usr build
	ninja -C build
}

check() {
	ninja -C build test
}

package() {
	DESTDIR="$pkgdir" ninja -C build install
}

sha512sums="d30c07a37e42d33ac0658f55e881ab2ca6faa45c251acbd99433ec0f119466f41bb2b6f4b953a7830dd120959aa7f1ee86a763881784e42ea9454f19893a6576  at-spi2-atk-2.34.1.tar.xz"