# Template file for 'aqbanking'
pkgname=aqbanking
version=5.8.2
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config gwenhywfar"
makedepends="gwenhywfar-devel xmlsec1-devel ktoblzcheck-devel gmp-devel"
short_desc="Library for online banking and financial applications"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-only, GPL-3.0-only"
homepage="http://www.aquamaniac.de/aqbanking"
distfiles="https://www.aquamaniac.de/rdm/attachments/download/107/aqbanking-${version}.tar.gz"
checksum=93ca523fe175e72042db75f8c3fc6255ab058cf82caf52796e15f030809fb15e
disable_parallel_build=yes

if [ "$CROSS_BUILD" ]; then
	configure_args+=" --with-gwen-dir=${XBPS_CROSS_BASE} -with-xmlmerge=/usr/bin/xmlmerge"
	export CFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/gwenhywfar4"
	export CXXFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/gwenhywfar4"
fi

aqbanking-devel_package() {
	depends="${sourcepkg}>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/bin/aqbanking-config
		vmove usr/include
		vmove "usr/lib/*.so"
		vmove usr/lib/pkgconfig
		vmove usr/share/aclocal
	}
}
