void-packages/srcpkgs/aqbanking/template
Helmut Pozimski b5d8fcd306 aqbanking: fix cross, change prefix detection for the cmake config file
The cmake configuration file for aqbankung always uses /usr as prefix
which causes issues while cross-compiling. This adds a patch to change
the detection to do it the same way most KDE/QT software does it.

Closes: #10663 [via git-merge-pr]
2018-01-12 13:51:43 +01:00

33 lines
1.1 KiB
Bash

# Template file for 'aqbanking'
pkgname=aqbanking
_dnrel=208
version=5.6.12
revision=2
hostmakedepends="pkg-config gwenhywfar"
makedepends="gwenhywfar-devel xmlsec1-devel ktoblzcheck-devel gmp-devel"
build_style="gnu-configure"
maintainer="Enno Boland <gottox@voidlinux.eu>"
license="GPL-2, GPL-3"
homepage="http://www.aquamaniac.de/aqbanking"
short_desc="A library for online banking and financial applications"
distfiles="http://www2.aquamaniac.de/sites/download/download.php?package=03&release=${_dnrel}&file=01&dummy=aqbanking-$version.tar.gz"
checksum=0652706a487d594640a7d544271976261165bf269d90dc70447b38b363e54b22
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
}
}