# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=aqbanking
pkgver=5.7.8
pkgrel=0
pkgdesc="Banking library with support for multiple protocols"
url="https://www.aquamaniac.de/sites/aqbanking/index.php"
arch="all"
license="(GPL-2.0-only OR GPL-3.0-only) AND BSD-3-Clause"
depends=""
depends_dev=""
makedepends="$depends_dev gmp-dev gwenhywfar-dev xmlsec-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="aqbanking-$pkgver.tar.gz::https://www.aquamaniac.de/sites/download/download.php?package=03&release=217&file=02&dummy=aqbanking-$pkgver.tar.gz"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		aq_distrib_name="Adélie" \
		aq_distrib_tag="adelie"
	make
}

check() {
	cd "$builddir"
	make check
}

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

sha512sums="4078c3bc2c0b6f38f853fed064e37b6188c0b8158416ca6482756232ef8fe71e9cc1df0abe8c6bcbe8a7e818c24210f553c367f540d60cb7b7cf0161a9ca7117  aqbanking-5.7.8.tar.gz"