# Description: Protocol definitions and daemon for D-Bus at-spi
# URL: https://gitlab.gnome.org/GNOME/at-spi2-core
# Maintainer: CRUX System Team, core-ports at crux dot nu
# Depends on: dbus gobject-introspection intltool libxml2 xorg-libxtst

name=at-spi2-core
version=2.52.0
release=1
source=(https://download.gnome.org/sources/$name/${version:0:4}/$name-$version.tar.xz)

build() {
	meson setup build $name-$version \
		--prefix /usr \
		--sysconfdir=/usr/etc \
		--libexecdir=/usr/lib/at-spi2 \
		--buildtype=plain \
		--wrap-mode nodownload \
		-D b_lto=true \
		-D b_pie=true

	meson compile -C build -j ${JOBS:-1}
	DESTDIR=$PKG meson install -C build

	rm -r $PKG/usr/{share/locale,lib/systemd}
}
