From 261bb7327f6a4fef24494be9d8647ce8c1260e4c Mon Sep 17 00:00:00 2001 From: Michał Masłowski Date: Sun, 5 Aug 2012 17:59:16 +0200 Subject: Fix scim-hangul build. --- extra/scim-hangul/PKGBUILD | 7 +++++-- extra/scim-hangul/unistd.patch | 11 +++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 extra/scim-hangul/unistd.patch (limited to 'extra') diff --git a/extra/scim-hangul/PKGBUILD b/extra/scim-hangul/PKGBUILD index 081538425..3f0ceaf22 100644 --- a/extra/scim-hangul/PKGBUILD +++ b/extra/scim-hangul/PKGBUILD @@ -12,13 +12,16 @@ license=('GPL') depends=('libhangul' 'scim') options=('!libtool') source=("http://downloads.sourceforge.net/sourceforge/scim/$pkgname-$pkgver.tar.gz" - 'gcc43.patch') + 'gcc43.patch' + 'unistd.patch') sha1sums=('d1f4a2114d284c926d64fbfe8ea83307b8d8e2ec' - '956bb2b6bd75b3d2756895f8ade429f95bacc0ff') + '956bb2b6bd75b3d2756895f8ade429f95bacc0ff' + '1cfce9a7d5240f6d19aea008edcd9c6989e94e62') build() { cd "${srcdir}/${pkgname}-${pkgver}" patch -p1 -i ../gcc43.patch + patch -p1 -i "$srcdir/unistd.patch" ./bootstrap # skim complains; it's alright ./configure --prefix=/usr --enable-skim-support make diff --git a/extra/scim-hangul/unistd.patch b/extra/scim-hangul/unistd.patch new file mode 100644 index 000000000..44ee7331c --- /dev/null +++ b/extra/scim-hangul/unistd.patch @@ -0,0 +1,11 @@ +diff -ru scim-hangul-0.3.2.orig/src/scim_hangul_imengine.cpp scim-hangul-0.3.2/src/scim_hangul_imengine.cpp +--- scim-hangul-0.3.2.orig/src/scim_hangul_imengine.cpp 2012-08-05 17:49:59.369710152 +0200 ++++ scim-hangul-0.3.2/src/scim_hangul_imengine.cpp 2012-08-05 17:50:16.401614147 +0200 +@@ -34,6 +34,7 @@ + #endif + + #include ++#include + #include + #include "scim_hangul_imengine.h" + -- cgit v1.2.3-54-g00ecf