#Packager: Anagnostakis Ioannis <rizitis@gmail.com>
pkgname=libnma-gtk4
pkgver=1.10.6
pkgrel=1
source=(https://gitlab.gnome.org/GNOME/libnma/-/archive/1.10.6/libnma-1.10.6.tar.gz)



doinst() {
if [ -e usr/share/glib-2.0/schemas ]; then
  if [ -x /usr/bin/glib-compile-schemas ]; then
    /usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas >/dev/null 2>&1
  fi
fi

}

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"libnma-gtk4 - NetworkManager GUI client library"
"The libnma-gtk4 library provides an API used to create dialogs for"
"NetworkManager clients such as network-manager-applet."
)


build() {
	cd $startdir/src/libnma-$pkgver
	meson setup \
	   	--prefix=/usr \
		--libdir=/usr/lib${LIBDIRSUFFIX} \
		--infodir=/usr/info \
		--localstatedir=/var \
		--mandir=/usr/man \
		--sysconfdir=/etc \
		-Dlibnma_gtk4=true \
		--strip \
		build
	meson compile -C build -j $numjobs
	meson install -C build --destdir $startdir/pkg/	
}