summaryrefslogtreecommitdiff
path: root/extra/scim
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /extra/scim
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'extra/scim')
-rw-r--r--extra/scim/PKGBUILD29
-rw-r--r--extra/scim/gcc45.patch12
-rw-r--r--extra/scim/scim.install13
3 files changed, 54 insertions, 0 deletions
diff --git a/extra/scim/PKGBUILD b/extra/scim/PKGBUILD
new file mode 100644
index 000000000..7e7fb2457
--- /dev/null
+++ b/extra/scim/PKGBUILD
@@ -0,0 +1,29 @@
+# $Id: PKGBUILD 84723 2010-07-03 19:29:41Z ibiru $
+# Maintainer: damir <damir@archlinux.org>
+# Contributor: Gan Lu <rhythm.gan@gmail.com>
+
+pkgname=scim
+pkgver=1.4.9
+pkgrel=2
+pkgdesc="A Input Method development platform"
+arch=("i686" "x86_64")
+url="http://www.scim-im.org/projects/scim"
+license=('GPL')
+depends=('gtk2' 'gcc-libs')
+makedepends=('intltool')
+backup=('etc/scim/config' 'etc/scim/global')
+options=('!libtool')
+install=scim.install
+source=(http://downloads.sourceforge.net/sourceforge/scim/$pkgname-$pkgver.tar.gz
+ gcc45.patch)
+md5sums=('975ba34b01304ea8166ac8ea27aa9e88'
+ '9d7b41421424cedcbc5740098afa4921')
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+ patch -Np1 -i $srcdir/gcc45.patch
+ ./configure --prefix=/usr --sysconfdir=/etc \
+ --with-gnu-ld --with-x --disable-static
+ make
+ make DESTDIR=$pkgdir install
+}
diff --git a/extra/scim/gcc45.patch b/extra/scim/gcc45.patch
new file mode 100644
index 000000000..267a2bbf6
--- /dev/null
+++ b/extra/scim/gcc45.patch
@@ -0,0 +1,12 @@
+diff -Nur scim-1.4.9.orig//src/ltdl.cpp scim-1.4.9/src/ltdl.cpp
+--- scim-1.4.9.orig//src/ltdl.cpp 2008-11-02 01:42:40.000000000 -0500
++++ scim-1.4.9/src/ltdl.cpp 2010-07-04 00:19:58.924925581 -0500
+@@ -3361,7 +3361,7 @@
+ {
+ lt_dlhandle handle = 0;
+ char * tmp = 0;
+- char * ext = 0;
++ const char * ext = 0;
+ size_t len;
+ int errors = 0;
+
diff --git a/extra/scim/scim.install b/extra/scim/scim.install
new file mode 100644
index 000000000..1097ea400
--- /dev/null
+++ b/extra/scim/scim.install
@@ -0,0 +1,13 @@
+post_install() {
+ echo -n "updating gtk.immodules... "
+ /usr/bin/gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
+ echo "done."
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}