# Contributor: xrs <xrs@mail36.net>
# Maintainer: xrs <xrs@mail36.net>
pkgname=gnunet-gtk
pkgver=0.11.7
pkgrel=0
pkgdesc="Graphical user interface for GNUnet"
url="https://gnunet.org"
arch="all"
license="GPL-3.0-only"
makedepends="gnunet-dev gtk+3.0-dev glade-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://mirrors.ocf.berkeley.edu/gnu/gnunet/gnunet-gtk-$pkgver.tar.gz"
options="!check" # The GNUnet project lacks a good CI at the moment.

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-fs-app \
		--disable-conversation-app
	make
}

check() {
	make DESTDIR="$pkgdir" check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="368d31e876d3ace60e62e744e5a7d375962a6f7e6c2800cf1389185673ec643a91160fccbd380427e5fdcf0683824aa17265b3de4eb8a8493aa20c55596d982f  gnunet-gtk-0.11.7.tar.gz"
