summaryrefslogtreecommitdiff
path: root/testing/libofx
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-08-12 00:04:05 +0000
committerroot <root@rshg054.dnsready.net>2012-08-12 00:04:05 +0000
commit012c4b7f27441c85d7f9c46a619a3b356c94cab7 (patch)
tree3d07a327d03ab3277405e9f8083afa603f468571 /testing/libofx
parent073a889144d77058f1eff2100ad48a538bdc0422 (diff)
Sun Aug 12 00:04:05 UTC 2012
Diffstat (limited to 'testing/libofx')
-rw-r--r--testing/libofx/PKGBUILD44
-rw-r--r--testing/libofx/libofx-gcc47.patch11
2 files changed, 55 insertions, 0 deletions
diff --git a/testing/libofx/PKGBUILD b/testing/libofx/PKGBUILD
new file mode 100644
index 000000000..218fa0cd3
--- /dev/null
+++ b/testing/libofx/PKGBUILD
@@ -0,0 +1,44 @@
+# $Id: PKGBUILD 165083 2012-08-10 05:02:43Z eric $
+# Maintainer: Aaron Griffin <aaron@archlinux.org>
+
+pkgbase=libofx
+pkgname=('libofx' 'libofx-doc')
+pkgver=0.9.5
+pkgrel=1
+pkgdesc="API for the OFX banking standard"
+arch=('i686' 'x86_64')
+url="http://libofx.sourceforge.net"
+license=('GPL')
+depends=('opensp' 'curl' 'libxml++')
+checkdepends=('gnupg')
+source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz libofx-gcc47.patch)
+sha1sums=('7e5245d68a0f3f7efad2fd809b2afbbff6ba0e73'
+ '6c327e24543cb8ba901bfb204343a85c68264654')
+
+build() {
+ cd "$srcdir/$pkgbase-$pkgver"
+ patch -p1 -i "$srcdir/libofx-gcc47.patch"
+ ./configure --prefix=/usr
+ make
+}
+
+check() {
+ cd "$srcdir/$pkgbase-$pkgver"
+ make check
+}
+
+package_libofx() {
+ options=('!libtool' '!docs')
+
+ cd "$srcdir/$pkgbase-$pkgver"
+ make DESTDIR="$pkgdir" install
+}
+
+package_libofx-doc() {
+ pkgdesc="Documention of the OFX banking standard API"
+ depends=()
+
+ cd "$srcdir/$pkgbase-$pkgver"
+ make DESTDIR="$pkgdir" install-docDATA
+ make -C doc DESTDIR="$pkgdir" install
+}
diff --git a/testing/libofx/libofx-gcc47.patch b/testing/libofx/libofx-gcc47.patch
new file mode 100644
index 000000000..899fe09e0
--- /dev/null
+++ b/testing/libofx/libofx-gcc47.patch
@@ -0,0 +1,11 @@
+diff -Nru libofx-0.9.4/debian/patches/fix-ftbfs-gcc4.7.diff libofx-0.9.4/debian/patches/fix-ftbfs-gcc4.7.diff
+--- libofx-0.9.4.orig/ofxconnect/ofxpartner.cpp 2011-03-30 22:30:50.000000000 +0000
++++ libofx-0.9.4/ofxconnect/ofxpartner.cpp 2012-04-17 06:08:38.711940892 +0000
+@@ -37,6 +37,7 @@
+ #include <vector>
+ #include <algorithm>
+ #include <string.h>
++#include <unistd.h>
+
+ using std::string;
+ using std::vector;