# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: 
pkgname=at-spi2-core
pkgver=2.38.0
pkgrel=0
pkgdesc="Protocol definitions and daemon for D-Bus at-spi"
url="https://wiki.linuxfoundation.org/accessibility/d-bus"
arch="all"
options="!check"  # Requires running at-spi2 daemon.
license="LGPL-2.0+"
depends="gobject-introspection"
makedepends="dbus-dev glib-dev gobject-introspection-dev libxtst-dev meson ninja"
subpackages="$pkgname-dev $pkgname-lang"
source="https://download.gnome.org/sources/at-spi2-core/${pkgver%.*}/at-spi2-core-$pkgver.tar.xz"

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

check() {
	ninja -C builddir/ test
}

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

sha512sums="3a1eb27cff6e0dd03119b4f8361a3b6037b26c511e80e2d003d1d5c41fede6d49eb5e0ac1ee45cfb4f3ca8e53292a7e2da67df80be28e77014775e41777a96c1  at-spi2-core-2.38.0.tar.xz"