summaryrefslogtreecommitdiff
path: root/community/qgo
diff options
context:
space:
mode:
Diffstat (limited to 'community/qgo')
-rw-r--r--community/qgo/PKGBUILD25
-rw-r--r--community/qgo/qgo-gcc43-iostream.patch28
2 files changed, 53 insertions, 0 deletions
diff --git a/community/qgo/PKGBUILD b/community/qgo/PKGBUILD
new file mode 100644
index 000000000..d9589aef6
--- /dev/null
+++ b/community/qgo/PKGBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Douglas Soares de Andrade <dsa@aur.archlinux.org>
+
+pkgname=qgo
+pkgver=1.5.4
+_realver=1.5.4-r2
+pkgrel=3
+pkgdesc="qGo is a Go client and full featured SGF editor."
+arch=('i686' 'x86_64')
+url="http://qgo.sourceforge.net/"
+license=('GPL')
+depends=('qt3' 'libsm')
+source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-${_realver}.tar.gz
+ qgo-gcc43-iostream.patch)
+
+build() {
+ . /etc/profile.d/qt3.sh
+
+ cd $srcdir/$pkgname-$pkgver
+ patch -Np1 -i $srcdir/qgo-gcc43-iostream.patch || return 1
+ ./configure --prefix=/usr
+ make || return 1
+ make DESTDIR=$pkgdir install
+}
+md5sums=('5b83bd5ec234beabe48ca17eace3957e'
+ '148c470f6426e6d626b3105807b0c006')
diff --git a/community/qgo/qgo-gcc43-iostream.patch b/community/qgo/qgo-gcc43-iostream.patch
new file mode 100644
index 000000000..6cd9fc1ec
--- /dev/null
+++ b/community/qgo/qgo-gcc43-iostream.patch
@@ -0,0 +1,28 @@
+--- qgo-1.5.4/src/matrix.cpp.orig 2008-02-15 16:47:04.000000000 -0500
++++ qgo-1.5.4/src/matrix.cpp 2008-02-15 16:47:58.000000000 -0500
+@@ -5,7 +5,10 @@
+ #include "matrix.h"
+ #include <stdlib.h>
+ #ifndef NO_DEBUG
+-#include <iostream.h>
++#include <iostream>
++
++using namespace std;
++
+ #endif
+
+ Matrix::Matrix(int s)
+--- qgo-1.5.4/src/tree.cpp.orig 2008-02-15 17:01:49.000000000 -0500
++++ qgo-1.5.4/src/tree.cpp 2008-02-15 17:03:06.000000000 -0500
+@@ -5,7 +5,10 @@
+ #include "tree.h"
+ #include "move.h"
+ #include "qgo.h"
+-#include <iostream.h>
++#include <iostream>
++
++using namespace std;
++
+ #include <qptrstack.h>
+
+ Tree::Tree(int board_size)