# Maintainer: PktSurf <smlinux@pktsurf.in>
app=gnome-desktop
version=42.4
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="/" \
    -Dgnome_distributor="SMLinux" \
    -Dbuild_gtk4=false 

  ninja
  DESTDIR="$pkg" ninja install

  cp ../COPYING* $pkgdocs/

  mkfinalpkg
}

sha512sums="
49c0be1176b4f934ca5a3cc127b60b73265ca03c78feae05316f781e5f8efbe5a671f70e0b7b7158a3a0516741f800930b6bc696a6a62f26b3bb9ee1a44a0d17  gnome-desktop-42.4.tar.lz
"
