summaryrefslogtreecommitdiff
path: root/community/gpsim
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2012-12-05 02:43:01 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2012-12-05 02:43:01 -0500
commit861f8a9281bd80927dbd7fd3a03eacbca9ae5cba (patch)
tree1cbb13dbeb160cd5a082db0bfdf1e15a3be5a6af /community/gpsim
parent7759218711a68c96b140ef53542bfbfee223bd11 (diff)
Add gpsim-0.26.1-glib.patch
Diffstat (limited to 'community/gpsim')
-rw-r--r--community/gpsim/PKGBUILD7
-rw-r--r--community/gpsim/gpsim-0.26.1-glib.patch24
2 files changed, 29 insertions, 2 deletions
diff --git a/community/gpsim/PKGBUILD b/community/gpsim/PKGBUILD
index 8edc7723f..f96c1fada 100644
--- a/community/gpsim/PKGBUILD
+++ b/community/gpsim/PKGBUILD
@@ -12,11 +12,14 @@ 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>
+