# Maintainer: PktSurf <smlinux@pktsurf.in>
app=at-spi2-core
version=2.34.0
build=1sml
homepage="https://gitlab.gnome.org/GNOME/at-spi2-core"
requires="libffi glib pcre dbus libx11 libxau libxdmcp"
desc="Protocol definitions and daemon for D-Bus at-spi"

prepbuilddir() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version 
  fixbuilddirpermissions
}

build() {
  mkdir -p smbuild && cd smbuild
  meson .. --prefix=/ \
    --sysconfdir=/etc

  ninja
  DESTDIR="$pkg" ninja install

  cp ../COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
347874fd3d0408279e927a6751573b0ce82df3f0a829726658e9437ff76aa2dd0d35b9b5fbec405e914993fa8de883edeeef5b004a311aa07943efe880401e60  at-spi2-core-2.34.0.tar.lz
"
