APP=gnome-desktop
VERSION=3.34.4
BUILD=1sml
HOMEPAGE="https://gitlab.gnome.org/GNOME/gnome-desktop"
DOWNLOAD="https://gitlab.gnome.org/GNOME/gnome-desktop/-/archive/3.34.4/gnome-desktop-3.34.4.tar.bz2"
DESC="Library with common API for various GNOME modules"
REQUIRES="graphite2 libseccomp gtk3 "

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION 
  fixbuilddirpermissions

  mkdir smbuild && cd smbuild
  meson .. \
    --prefix="/" \
    -Dgnome_distributor="SMLinux" 

  ninja
  DESTDIR="$PKG" ninja install

  cp ../COPYING* $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
b46df9dfc49c89061c5243a46cc36e5ebbe2a0057f8608de1430e05fbd731d3a7784d6cfa72c9d61ad177bc19f8d0527d5ca4a943311996746c474cbf9d7c0bb  gnome-desktop-3.34.4.tar.lz
"
