# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer:
pkgname=gpa
pkgver=0.9.10
pkgrel=1
pkgdesc="A graphical user interface for the GnuPG"
url="https://www.gnupg.org/related_software/gpa/"
arch="all"
license="GPL-3.0"
depends=""
makedepends="gpgme-dev gtk+2.0-dev"
install=""
subpackages="$pkgname-doc"
source="ftp://ftp.gnupg.org/gcrypt/gpa/gpa-$pkgver.tar.bz2"
builddir="$srcdir/gpa-$pkgver"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-nls
	make
}

check() {
	cd "$builddir"
	msg "Running testsuites..."
	make check
}

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

sha512sums="ff81a78e6b7c46307af6648a2e691a5e8185db229ccc5e259f2c3c05a3c86b337dde492069e7e9510c155fbc64d71cc4e2f109a00400bfb7560c558b753c42a9  gpa-0.9.10.tar.bz2"
