# Maintainer: PktSurf <smlinux@pktsurf.in>
app=gnome-desktop
version=44.0
build=1sml
homepage="https://gitlab.gnome.org/GNOME/gnome-desktop"
download="https://gitlab.gnome.org/GNOME/gnome-desktop/-/archive/$version/gnome-desktop-$version.tar.bz2"
desc="Library with common API for various GNOME modules"
requires="graphite2 libseccomp gtk3"

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=/ \
    -Dbuild_gtk4=false 

  ninja
  DESTDIR="$pkg" ninja install

  cp ../COPYING* $pkgdocs/

  mkfinalpkg
}

sha512sums="
131d5abace5949c42db3ab7b3fbc7476863758c72fdaaded98ac09983fd4f78598f6662d5aa49e82795bf9c76985e8456f4cc91c8e8de92826fc33af831e0d71  gnome-desktop-44.0.tar.lz
"
