# Description: Networkmanager GUI client library
# URL: https://gitlab.gnome.org/GNOME/libnma
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: gcr gtk3 iso-codes networkmanager

name=libnma
version=1.10.6
release=1
source=(https://gitlab.gnome.org/GNOME/libnma/-/archive/$version/libnma-$version.tar.bz2)

build() {
  #prt-get isinst gtk4 && PKGMK_LIBNMA+=' -D libnma_gtk4=true'
  prt-get isinst vala || PKGMK_LIBNMA+=' -D vapi=false'

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

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