# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=iwgtk
pkgver=0.9
pkgrel=0
pkgdesc="graphical wifi management utility for iwd"
url="https://github.com/J-Lentz/iwgtk"
arch="all !s390x !riscv64" # blocked by gtk4.0
license="GPL-3-or-later"
options="!check" # no tests
makedepends="gtk4.0-dev libqrencode-dev meson scdoc"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/J-Lentz/iwgtk/archive/v$pkgver.tar.gz"

build() {
	abuild-meson --prefix=/usr build
	cd build
	meson compile
}

package() {
	cd build
	meson install --destdir $pkgdir
	rm -rf "$pkgdir"/usr/share/lib
}

sha512sums="
d755d72744051a39dda0b78dc0fb2cc57cbf44cd095ac595d4e83f22a70471a0d69a406636d0a4d5922b533d1c849578779fd7f4c41a0b0e1549dd4e9cc45c4d  iwgtk-0.9.tar.gz
"
