#!/usr/bin/bash # JOBoRun : Jwm OpenBox Obarun RUNit # Maintainer : Joe Bo Run # PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname" # Website : https://pozol.eu #-----------------------------------------| DESCRIPTION |--------------------------------------- pkgbase=at-spi2-core pkgname=(at-spi2-core) # at-spi2-core-docs) # uncomment the docs sections and modify this pkg list to build the docs documents pkgver=2.52.0 pkgrel=01 # Arch replaced makedependency from libsystemd to systemd, the reason for the rerun 2.44.0-2 # Let's see if it makes a difference to us :) :P pkgdesc="Protocol definitions and daemon for D-Bus at-spi w/o systemd" url="https://gitlab.gnome.org/GNOME/at-spi2-core" depends=(dbus glib2 libxtst xorg-xprop libx11 libxml2 gsettings-desktop-schemas bash glibc libei libxi libxkbcommon) makedepends=(gobject-introspection git meson gi-docgen python-sphinx) checkdepends=(at-spi2-core) _commit=46c8de80022d28eef2da58f1054b5bff745ed7e0 # tags/AT_SPI2_CORE_2_52_0^0 # options=(debug) ## uncomment this to have the debug package built source=("git+$url.git#commit=$_commit") pkgver() { cd $pkgbase git describe --tags | sed 's/^AT_SPI2_CORE_//;s/_/./g;s/-/+/g' } prepare() { cd $pkgbase } build() { local meson_options=( -D default_bus=dbus-broker -D docs=true ) arch-meson at-spi2-core build "${meson_options[@]}" meson compile -C build } # run 1st time with checks uncommented, 1 fails, comment this section # run again without -f (not makepkg -f just makepkg) check() { # memory test fails without desktop # broker fails to launch without journald # # Aaahhh journald must be running for the check to pass --- yawn yawn and again! dbus-run-session meson test -C build --print-errorlogs } package_at-spi2-core() { optdepends=('dbus-broker: Alternative bus implementation') provides=( "at-spi2-atk=$pkgver-$pkgrel" "atk=$pkgver-$pkgrel" libatk-1.0.so libatk-bridge-2.0.so libatspi.so ) conflicts=( 'at-spi2-atk<=2.38.0-2' 'atk<=2.38.0-2' ) replaces=( 'at-spi2-atk<=2.38.0-2' 'atk<=2.38.0-2' ) meson install -C build --destdir "$pkgdir" mkdir -p doc/usr/share mv {"$pkgdir",doc}/usr/share/doc rm -rf $pkgdir/usr/lib/systemd/user/at-spi-dbus-bus.service rm -rf $pkgdir/usr/lib/systemd } #package_at-spi2-core-docs() { # pkgdesc+=" (documentation)" # depends=() # # mv doc/* "$pkgdir" # # meson install -C build --destdir "$pkgdir" #} #---- arch license gpg-key & sha256sums ---- arch=(x86_64) license=(GPL2) sha256sums=('SKIP') ## f3c9cecf98a730feefbfa90d6a5bc71e5c712c0c9f7227a823d8bd5a3c1ca4c3 at-spi2-core-2.52.0-01-x86_64.pkg.tar.lz