# Maintainer: PktSurf <smlinux@pktsurf.in>
app=gsettings-desktop-schemas
version=44.0
build=1sml
homepage="https://gitlab.gnome.org/GNOME/gsettings-desktop-schemas"
download="https://download.gnome.org/sources/gsettings-desktop-schemas/44/gsettings-desktop-schemas-$version.tar.xz"
desc="Shared GSettings schemas for the desktop"
requires="dconf gobject-introspection"

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

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

  sed -i -r 's:"(/system):"/org/gnome\1:g' schemas/*.in
}

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

  ninja
  DESTDIR="$pkg" ninja install

  cp ../COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
f8ed90a4d85ba4444feacefecab1dbb7731a48fc4c20e5dcccbdc34674ed9ca7b2fa4b0bc696da0db13142d8bcf45ce2979e78e78b39cc8cf39e6a6cacf740a6  gsettings-desktop-schemas-44.0.tar.lz
"