# Contributor:
# Maintainer: 7heo <7heo@mail.com>
pkgname=libofx
pkgver=0.9.12
pkgrel=0
pkgdesc="The libofx OFX banking protocol abstraction library"
url="https://github.com/libofx/libofx"
arch="all"
license="GPL-2.0"
depends=""
makedepends="bash automake autoconf libtool gengetopt opensp-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/libofx/$pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

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

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

sha512sums="5adde556785c8f9c928f067e0e100468baa3a852bc00de592c429ee97ee6f903a68eab0c35f0f1fdedd379aaacb22ae7488208d48b8d0c41ad2bb76de51c65bd  libofx-0.9.12.tar.gz"
