# Description: Shared GSettings schemas for the desktop
# URL: https://gitlab.gnome.org/GNOME/gsettings-desktop-schemas
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: gobject-introspection intltool

name=gsettings-desktop-schemas
version=46.0
release=1
source=(https://download.gnome.org/sources/$name/${version:0:2}/$name-$version.tar.xz)

build() {
  sed -i -r 's:"(/system):"/org/gnome\1:g' $name-$version/schemas/*.in

  meson setup $name-$version build \
    --prefix=/usr \
    --buildtype=plain \
    --wrap-mode nodownload \
    -D b_lto=true \
    -D b_pie=true

  meson compile -C build
  DESTDIR=$PKG meson install -C build

  rm -r $PKG/usr/share/locale
}
