# Template file for 'aqbanking'
pkgname=aqbanking
version=5.99.45
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config gwenhywfar tar"
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/232/aqbanking-${version}.tar.gz"
checksum=7e98f6eb817e6efe4a5f803af51781f7a6a8ae769a6c77ae324ed99033bd143f
disable_parallel_build=yes

if [ "$CROSS_BUILD" ]; then
	export PKG_CONFIG_PATH=${XBPS_CROSS_BASE}/usr/lib/pkgconfig
	configure_args+=" -with-xmlmerge=/usr/bin/xmlmerge"
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
	}
}
