summaryrefslogtreecommitdiff
path: root/extra/aiksaurus
diff options
context:
space:
mode:
Diffstat (limited to 'extra/aiksaurus')
-rw-r--r--extra/aiksaurus/PKGBUILD28
-rw-r--r--extra/aiksaurus/aiksaurus-gcc44.patch31
2 files changed, 59 insertions, 0 deletions
diff --git a/extra/aiksaurus/PKGBUILD b/extra/aiksaurus/PKGBUILD
new file mode 100644
index 000000000..24fc074f9
--- /dev/null
+++ b/extra/aiksaurus/PKGBUILD
@@ -0,0 +1,28 @@
+# $Id: PKGBUILD 45575 2009-07-12 17:51:06Z ronald $
+# Maintainer: Ronald van Haren <ronald.archlinux.org>
+# Contributor: Jan de Groot <jgc@archlinux.org>
+
+pkgname=aiksaurus
+pkgver=1.2.1
+pkgrel=2
+pkgdesc="A cross-platform, open-source thesaurus"
+url="http://aiksaurus.sourceforge.net/"
+license=('GPL')
+arch=('i686' 'x86_64' 'mips64el')
+options=('!libtool')
+depends=('gtk2')
+source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz
+ 'aiksaurus-gcc44.patch')
+md5sums=('3eae03b7c49843ccc9262e52846ea6b4'
+ '7f94749172116b1529fc21b718ee7636')
+
+build() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+
+ # gcc44 build patch
+ patch -Np0 -i ${srcdir}/aiksaurus-gcc44.patch || return 1
+
+ ./configure --prefix=/usr --with-gtk
+ make || return 1
+ make DESTDIR=${pkgdir} install
+}
diff --git a/extra/aiksaurus/aiksaurus-gcc44.patch b/extra/aiksaurus/aiksaurus-gcc44.patch
new file mode 100644
index 000000000..7146d5307
--- /dev/null
+++ b/extra/aiksaurus/aiksaurus-gcc44.patch
@@ -0,0 +1,31 @@
+--- base/aiksaurus.t.cpp~ 2003-06-26 21:44:38.000000000 -0400
++++ base/aiksaurus.t.cpp 2009-05-31 20:02:29.172988678 -0400
+@@ -22,6 +22,7 @@
+ #include "Aiksaurus.h"
+ #include "AsciiCompare.h"
+ #include "config.h"
++#include <cstdlib>
+ #include <iostream>
+ #include <string>
+ using namespace std;
+
+--- ./gtk/src/Display.cpp~ 2003-05-27 19:56:54.000000000 -0400
++++ ./gtk/src/Display.cpp 2009-06-02 18:09:36.198627551 -0400
+@@ -22,6 +22,7 @@
+ #include "Meaning.h"
+ #include "DialogMediator.h"
+ #include "Exception.h"
++#include <cstring>
+ using namespace std;
+
+ namespace AiksaurusGTK_impl
+--- ./gtk/src/gtkAiksaur.t.cpp~ 2002-01-11 21:02:12.000000000 -0500
++++ ./gtk/src/gtkAiksaur.t.cpp 2009-06-02 18:12:06.815277325 -0400
+@@ -21,6 +21,7 @@
+ #include <AiksaurusGTK.h>
+ #include "config.h"
+ #include <gtk/gtk.h>
++#include <cstdlib>
+ #include <iostream>
+ #include <string>
+ using namespace std;