summaryrefslogtreecommitdiff
path: root/community/gpsim
diff options
context:
space:
mode:
Diffstat (limited to 'community/gpsim')
-rw-r--r--community/gpsim/PKGBUILD9
-rw-r--r--community/gpsim/gpsim-0.26.1-glib.patch24
2 files changed, 30 insertions, 3 deletions
diff --git a/community/gpsim/PKGBUILD b/community/gpsim/PKGBUILD
index 311a70a32..f96c1fada 100644
--- a/community/gpsim/PKGBUILD
+++ b/community/gpsim/PKGBUILD
@@ -6,17 +6,20 @@ pkgname=gpsim
pkgver=0.26.1
pkgrel=2
pkgdesc="A full-featured software simulator for Microchip PIC microcontrollers"
-arch=(i686 x86_64)
+arch=(i686 x86_64 'mips64el')
url="http://gpsim.sourceforge.net/"
license=(GPL)
depends=('gtk2+extra' 'popt')
makedepends=('gtk2+extra')
options=('!libtool')
-source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz)
-md5sums=('c994c23d2d75056dbefcf5d1d63596d7')
+source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz
+ gpsim-0.26.1-glib.patch)
+md5sums=('c994c23d2d75056dbefcf5d1d63596d7'
+ 'ddc2ffc384ae37020cffb56d68b2fe04')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
+ patch -Np1 -i ${srcdir}/gpsim-0.26.1-glib.patch
./configure --prefix=/usr
make
make DESTDIR=${pkgdir} install
diff --git a/community/gpsim/gpsim-0.26.1-glib.patch b/community/gpsim/gpsim-0.26.1-glib.patch
new file mode 100644
index 000000000..0088ca836
--- /dev/null
+++ b/community/gpsim/gpsim-0.26.1-glib.patch
@@ -0,0 +1,24 @@
+--- gpsim-0.26.1.orig/src/bitlog.h 2010-06-05 01:46:30.000000000 -0500
++++ gpsim-0.26.1/src/bitlog.h 2012-12-04 08:32:03.327155186 -0500
+@@ -25,7 +25,7 @@
+
+ // include the absolute minimum portion of GLIB to get the definitions
+ // for guint64, etc.
+-#include <glibconfig.h>
++#include <glib.h>
+
+ /**********************************************************************
+ * boolean event logging
+
+--- gpsim-0.26.1.orig/src/os_dependent.cc 2010-06-05 01:46:30.000000000 -0500
++++ gpsim-0.26.1/src/os_dependent.cc 2012-12-04 08:50:22.684064974 -0500
+@@ -39,8 +39,7 @@
+ #ifdef _WIN32
+ #define G_PLATFORM_WIN32
+ #define G_OS_WIN32
+-#include <glib/gmem.h>
+-#include <glib/gwin32.h>
++#include <glib.h>
+ #include <direct.h>
+ #include <windows.h>
+