# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=libgnt
pkgver=2.14.4
pkgrel=0
pkgdesc="glib ncurses toolkit"
url="https://keep.imfreedom.org/libgnt/libgnt"
arch="all"
license="GPL-2.0-or-later"
makedepends="meson glib-dev libxml2-dev ncurses-dev gtk-doc"
subpackages="$pkgname-dev $pkgname-doc"
source="https://downloads.sourceforge.net/project/pidgin/libgnt/$pkgver/libgnt-$pkgver-dev.tar.xz"
builddir="$srcdir/$pkgname-$pkgver-dev"

build() {
	abuild-meson -Dpython2=false . output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
2ed27d47adf3939fdba1cfe7cb80b3895f66dd5ee2aec81b6dc66ed23cf5a045fbf20b5e01af3964332621f4f2f172b4c2bc06db2907ac786d2ec32920bcf175  libgnt-2.14.4-dev.tar.xz
"
