summaryrefslogtreecommitdiff
path: root/community/gimmage
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2012-11-25 22:20:07 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2012-11-25 22:20:07 -0500
commitf79eb0c07d2752f2d618e490ab6d3fe364dc4f91 (patch)
tree486fe8ff8812987ba0eb7910ac6a91105ac64133 /community/gimmage
parentc5f50f42e17f6015878ac6e9b036d13ae7a5275e (diff)
Add gimmage-0.2.3-gcc47.patch
Diffstat (limited to 'community/gimmage')
-rw-r--r--community/gimmage/PKGBUILD7
-rw-r--r--community/gimmage/gimmage-0.2.3-gcc47.patch11
2 files changed, 16 insertions, 2 deletions
diff --git a/community/gimmage/PKGBUILD b/community/gimmage/PKGBUILD
index f4a994d35..521b13153 100644
--- a/community/gimmage/PKGBUILD
+++ b/community/gimmage/PKGBUILD
@@ -13,11 +13,14 @@ license=('GPL')
depends=('gtkmm' 'curl' 'file')
makedepends=('pkgconfig')
changelog=ChangeLog
-source=(http://download.berlios.de/$pkgname/$pkgname-$pkgver.tar.gz)
-md5sums=('f51cca53b3d33415e75a91cf81b6ac39')
+source=(http://download.berlios.de/$pkgname/$pkgname-$pkgver.tar.gz
+ gimmage-0.2.3-gcc47.patch)
+md5sums=('f51cca53b3d33415e75a91cf81b6ac39'
+ '23969d3aaaaf4285dc45bd59f4fb11c3')
build() {
cd $srcdir/$pkgname-$pkgver
+ patch -Np1 -i ${srcdir}/gimmage-0.2.3-gcc47.patch
rm gimmage.desktop
sed -i 's|Exec=@prefix@/bin/gimmage|Exec=@prefix@/bin/gimmage %U|' gimmage.desktop.in
./configure --prefix=/usr
diff --git a/community/gimmage/gimmage-0.2.3-gcc47.patch b/community/gimmage/gimmage-0.2.3-gcc47.patch
new file mode 100644
index 000000000..72f53396f
--- /dev/null
+++ b/community/gimmage/gimmage-0.2.3-gcc47.patch
@@ -0,0 +1,11 @@
+--- gimmage-0.2.3.orig/src/FileManager.cpp 2007-06-26 15:51:15.000000000 +0200
++++ gimmage-0.2.3/src/FileManager.cpp 2008-02-16 13:58:34.000000000 +0100
+@@ -21,6 +21,8 @@
+
+ // we make extensive use of get_current_dir_name() from Glib
+
++#include <unistd.h>
++
+ #include "FileManager.h"
+ #include "defines.h"
+