jobextra/at-spi2-core/PKGBUILD-arch

94 lines
1.7 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
2023-04-10 23:05:46 +02:00
pkgname=(
at-spi2-core
at-spi2-core-docs
)
pkgver=2.48.0
2023-04-10 23:05:46 +02:00
pkgrel=2
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
2023-04-10 23:05:46 +02:00
gsettings-desktop-schemas
2022-09-25 01:11:37 +02:00
libx11
libxml2
libxtst
systemd
)
makedepends=(
dbus-broker
gi-docgen
2022-09-25 01:11:37 +02:00
git
gobject-introspection
meson
python-sphinx
2022-09-25 01:11:37 +02:00
)
2023-04-10 23:05:46 +02:00
checkdepends=(
at-spi2-core
)
_commit=d963aff7f6977e50517fb2ffe8b31f1db142107d # tags/AT_SPI2_CORE_2_48_0^0
2022-03-20 13:34:07 +01:00
source=("git+https://gitlab.gnome.org/GNOME/at-spi2-core.git#commit=$_commit")
b2sums=('SKIP')
2022-03-20 13:34:07 +01:00
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-26 01:57:07 +02:00
local meson_options=(
-D default_bus=dbus-broker
2022-03-20 13:34:07 +01:00
-D docs=true
2022-09-26 01:57:07 +02:00
)
arch-meson at-spi2-core build "${meson_options[@]}"
2022-03-20 13:34:07 +01:00
meson compile -C build
}
check() {
2023-04-10 23:05:46 +02:00
dbus-run-session meson test -C build --print-errorlogs
2022-03-20 13:34:07 +01:00
}
2022-09-25 01:11:37 +02:00
package_at-spi2-core() {
optdepends=('dbus-broker: Alternative bus implementation')
provides=(
2022-09-26 01:57:07 +02:00
"at-spi2-atk=$pkgver-$pkgrel"
"atk=$pkgver-$pkgrel"
2022-09-25 01:11:37 +02:00
libatk-1.0.so
libatk-bridge-2.0.so
libatspi.so
)
2022-09-26 01:57:07 +02:00
conflicts=(
'at-spi2-atk<=2.38.0-2'
'atk<=2.38.0-2'
)
2022-09-25 01:11:37 +02:00
replaces=(
2022-09-26 01:57:07 +02:00
'at-spi2-atk<=2.38.0-2'
'atk<=2.38.0-2'
2022-09-25 01:11:37 +02:00
)
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/doc
2022-09-25 01:11:37 +02:00
}
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: