# Maintainer: team/gnome <fossdd@pwned.life>
pkgname=at-spi2-core
pkgver=2.56.5
pkgrel=0
pkgdesc="Protocol definitions and daemon for D-Bus at-spi"
url="https://www.freedesktop.org/wiki/Accessibility/AT-SPI2/"
arch="all"
options="!check" # Requires running dbus daemon.
license="LGPL-2.1-or-later"
makedepends="
dbus-dev
glib-dev
gobject-introspection-dev
gtk-doc
libxml2-dev
libxtst-dev
meson
"
subpackages="
$pkgname-dbg
$pkgname-dev
$pkgname-lang
libatk-1.0:libatk
libatk-bridge-2.0:libatk_bridge
$pkgname-libs
"
# Allows disabling installation of the accessibility service with `apk add !at-spi2-core`.
# See https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/80773
install_if="$pkgname-libs=$pkgver-r$pkgrel"
source="https://download.gnome.org/sources/at-spi2-core/${pkgver%.*}/at-spi2-core-$pkgver.tar.xz"
# both were merged into this
replaces="atk at-spi2-atk"
build() {
abuild-meson \
-Db_lto=true \
-Dx11=enabled \
-Dintrospection=enabled \
-Ddocs=false \
-Ddbus_daemon=/usr/bin/dbus-daemon \
. build
meson compile -C build
}
package() {
DESTDIR="$pkgdir" meson install --no-rebuild -C build
rm -rf "$pkgdir"/usr/lib/systemd
}
dev() {
default_dev
replaces="atk-dev at-spi2-atk-dev"
}
libatk() {
pkgdesc="ATK library accessibility interfaces (1.0)"
amove \
usr/lib/libatk-1.0* \
usr/lib/girepository-1.0/Atk-1.0.typelib
}
libatk_bridge() {
pkgdesc="GTK+2.0 module that bridges ATK to D-Bus at-spi"
amove \
usr/lib/gnome-settings-daemon-3.0 \
usr/lib/gtk-2.0 \
usr/lib/libatk-bridge-2.0*
}
sha512sums="
b495a9f7f8539c9d7a3929d8bdceb98ce0b8dac9ea735fa85aada6e1062658b7fff323c8e76a4ae34131febffa9664976f3e1e3e171154c0ff8e923c4db9d9e5 at-spi2-core-2.56.5.tar.xz
"