summaryrefslogtreecommitdiff
path: root/extra/scim-hangul
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2012-08-05 17:59:16 +0200
committerMichał Masłowski <mtjm@mtjm.eu>2012-08-05 17:59:16 +0200
commit261bb7327f6a4fef24494be9d8647ce8c1260e4c (patch)
treee505e766bf5963ec2aefa11b9e07e8cc4919ba01 /extra/scim-hangul
parentae30753c6d386130aadfc8709c7f215a5eac9694 (diff)
Fix scim-hangul build.
Diffstat (limited to 'extra/scim-hangul')
-rw-r--r--extra/scim-hangul/PKGBUILD7
-rw-r--r--extra/scim-hangul/unistd.patch11
2 files changed, 16 insertions, 2 deletions
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 <cstring>
++#include <unistd.h>
+ #include <scim.h>
+ #include "scim_hangul_imengine.h"
+