jobextra/at-spi2-core/PKGBUILD-arch

82 lines
1.5 KiB
Plaintext
Raw Normal View History

2022-03-20 13:34:07 +01:00
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Contributor: Ionut Biru <ibiru@archlinux.org>
2022-09-25 01:11:37 +02:00
pkgbase=at-spi2-core
pkgname=(at-spi2-core at-spi2-core-docs)
pkgver=2.46.0
2022-04-22 21:10:06 +02:00
pkgrel=1
2022-03-20 13:34:07 +01:00
pkgdesc="Protocol definitions and daemon for D-Bus at-spi"
url="https://gitlab.gnome.org/GNOME/at-spi2-core"
arch=(x86_64)
license=(GPL2)
2022-09-25 01:11:37 +02:00
depends=(
dbus
glib2
libx11
libxml2
libxtst
systemd
)
makedepends=(
dbus-broker
git
gobject-introspection
gtk-doc
meson
)
2022-03-23 03:58:16 +01:00
options=(debug)
2022-09-25 01:11:37 +02:00
_commit=97d9ba04e19d0a9edd209d97db81eb6ede5fe4d6 # tags/AT_SPI2_CORE_2_46_0^0
2022-03-20 13:34:07 +01:00
source=("git+https://gitlab.gnome.org/GNOME/at-spi2-core.git#commit=$_commit")
sha256sums=('SKIP')
pkgver() {
2022-09-25 01:11:37 +02:00
cd at-spi2-core
2022-03-20 13:34:07 +01:00
git describe --tags | sed 's/^AT_SPI2_CORE_//;s/_/./g;s/-/+/g'
}
prepare() {
2022-09-25 01:11:37 +02:00
cd at-spi2-core
2022-03-20 13:34:07 +01:00
}
build() {
2022-09-25 01:11:37 +02:00
arch-meson at-spi2-core build \
2022-03-20 13:34:07 +01:00
-D default_bus=dbus-broker \
-D docs=true
meson compile -C build
}
check() {
# memory test fails without desktop
# broker fails to launch without journald
dbus-run-session meson test -C build --print-errorlogs || :
}
2022-09-25 01:11:37 +02:00
package_at-spi2-core() {
optdepends=('dbus-broker: Alternative bus implementation')
provides=(
at-spi2-atk
atk
libatk-1.0.so
libatk-bridge-2.0.so
libatspi.so
)
replaces=(
'at-spi2-atk<=2.38.0-1'
'atk<=2.38.0-1'
)
2022-03-20 13:34:07 +01:00
meson install -C build --destdir "$pkgdir"
2022-09-25 01:11:37 +02:00
mkdir -p doc/usr/share
mv {"$pkgdir",doc}/usr/share/gtk-doc
}
package_at-spi2-core-docs() {
pkgdesc+=" (documentation)"
depends=()
mv doc/* "$pkgdir"
2022-03-20 13:34:07 +01:00
}
2022-09-25 01:11:37 +02:00
# vim:set sw=2 sts=-1 et: