Date: Saturday, September 24, 2022 @ 18:04:53
  Author: heftig
Revision: 456724

2.46.0-1

Modified:
  at-spi2-core/trunk/PKGBUILD

----------+
 PKGBUILD |   58 +++++++++++++++++++++++++++++++++++++++++++++++-----------
 1 file changed, 47 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2022-09-24 17:57:56 UTC (rev 456723)
+++ PKGBUILD    2022-09-24 18:04:53 UTC (rev 456724)
@@ -1,32 +1,45 @@
 # Maintainer: Jan Alexander Steffens (heftig) <[email protected]>
 # Contributor: Ionut Biru <[email protected]>
 
-pkgname=at-spi2-core
-pkgver=2.44.1
+pkgbase=at-spi2-core
+pkgname=(at-spi2-core at-spi2-core-docs)
+pkgver=2.46.0
 pkgrel=1
 pkgdesc="Protocol definitions and daemon for D-Bus at-spi"
 url="https://gitlab.gnome.org/GNOME/at-spi2-core";
 arch=(x86_64)
 license=(GPL2)
-depends=(dbus glib2 libxtst systemd)
-makedepends=(gobject-introspection git gtk-doc meson dbus-broker)
-optdepends=('dbus-broker: Alternative bus implementation')
+depends=(
+  dbus
+  glib2
+  libx11
+  libxml2
+  libxtst
+  systemd
+)
+makedepends=(
+  dbus-broker
+  git
+  gobject-introspection
+  gtk-doc
+  meson
+)
 options=(debug)
-_commit=9a1f0aec0b7dc55360310b6d02c2b7798511268f  # tags/AT_SPI2_CORE_2_44_1^0
+_commit=97d9ba04e19d0a9edd209d97db81eb6ede5fe4d6  # tags/AT_SPI2_CORE_2_46_0^0
 source=("git+https://gitlab.gnome.org/GNOME/at-spi2-core.git#commit=$_commit";)
 sha256sums=('SKIP')
 
 pkgver() {
-  cd $pkgname
+  cd at-spi2-core
   git describe --tags | sed 's/^AT_SPI2_CORE_//;s/_/./g;s/-/+/g'
 }
 
 prepare() {
-  cd $pkgname
+  cd at-spi2-core
 }
 
 build() {
-  arch-meson $pkgname build \
+  arch-meson at-spi2-core build \
     -D default_bus=dbus-broker \
     -D docs=true
   meson compile -C build
@@ -38,8 +51,31 @@
   dbus-run-session meson test -C build --print-errorlogs || :
 }
 
-package() {
+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'
+  )
+
   meson install -C build --destdir "$pkgdir"
+
+  mkdir -p doc/usr/share
+  mv {"$pkgdir",doc}/usr/share/gtk-doc
 }
 
-# vim:set sw=2 et:
+package_at-spi2-core-docs() {
+  pkgdesc+=" (documentation)"
+  depends=()
+
+  mv doc/* "$pkgdir"
+}
+
+# vim:set sw=2 sts=-1 et:

Reply via email to