# Description: dconf Editor
# URL: https://wiki.gnome.org/Projects/dconf
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on:  dconf libhandy

name=dconf-editor
version=49.0
release=1
source=(https://download.gnome.org/sources/$name/${version//.*}/$name-$version.tar.xz)

build() {
  ls /usr/share/vala/vapi/dconf.vapi || (printf '\e[1;31m%-6s\e[m\n' "$name needs dconf build with vala bindings, install vala, rebuild dconf, then install $name" ; exit 1)

  meson setup $name-$version build \
    --prefix=/usr \
    --buildtype=plain \
    --wrap-mode nodownload \
    -D b_lto=false \
    -D b_pie=true
  meson compile -C build
  DESTDIR=$PKG meson install -C build

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