summaryrefslogtreecommitdiff
path: root/extra/uim
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/uim
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'extra/uim')
-rw-r--r--extra/uim/PKGBUILD37
-rw-r--r--extra/uim/home.patch24
-rw-r--r--extra/uim/install13
3 files changed, 74 insertions, 0 deletions
diff --git a/extra/uim/PKGBUILD b/extra/uim/PKGBUILD
new file mode 100644
index 000000000..fb26f8a91
--- /dev/null
+++ b/extra/uim/PKGBUILD
@@ -0,0 +1,37 @@
+# $Id: PKGBUILD 109572 2011-02-10 20:32:59Z bisson $
+# Maintainer: damir <damir@archlinux.org>
+
+pkgname=uim
+pkgver=1.6.1
+pkgrel=2
+pkgdesc='Multilingual input method library'
+arch=('i686' 'x86_64')
+url='http://code.google.com/p/uim/'
+license=('custom')
+depends=('gtk2' 'libxft' 'libedit' 'anthy' 'm17n-lib')
+makedepends=('intltool' 'gettext' 'gnome-panel')
+optdepends=('gnome-panel: gnome applet indicator')
+options=('!libtool')
+source=("http://uim.googlecode.com/files/${pkgname}-${pkgver}.tar.bz2"
+ 'home.patch')
+sha1sums=('412bb2df6041185084e2f64fb73357389bf992b5'
+ 'dbcf90f3ea246c5723d715e0935072baa9364cd2')
+
+install=install
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ # UIM's Makefile needs to write in $HOME
+ patch -p0 < ../home.patch; export HOME="`pwd`"
+
+ ./configure --prefix=/usr --libexecdir=/usr/lib/uim \
+ --with-anthy-utf8
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+ install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
+}
diff --git a/extra/uim/home.patch b/extra/uim/home.patch
new file mode 100644
index 000000000..5d171529d
--- /dev/null
+++ b/extra/uim/home.patch
@@ -0,0 +1,24 @@
+diff -aur uim/uim-helper.c uim/uim-helper.c
+--- uim/uim-helper.c 2010-08-22 19:23:37.646666698 +0200
++++ uim/uim-helper.c 2010-08-22 19:26:57.676666781 +0200
+@@ -178,7 +178,7 @@
+ goto path_error;
+ }
+
+- if (strlcpy(helper_path, pw->pw_dir, len) >= (size_t)len) {
++ if (strlcpy(helper_path, getenv("HOME"), len) >= (size_t)len) {
+ endpwent();
+ goto path_error;
+ }
+diff -aur uim/uim-posix.c uim/uim-posix.c
+--- uim/uim-posix.c 2010-08-22 19:23:37.650000031 +0200
++++ uim/uim-posix.c 2010-08-22 19:26:40.096666322 +0200
+@@ -100,7 +100,7 @@
+ home[0] = '\0';
+ return UIM_FALSE;
+ }
+- if (strlcpy(home, pw->pw_dir, len) >= (size_t)len) {
++ if (strlcpy(home, getenv("HOME"), len) >= (size_t)len) {
+ home[0] = '\0';
+ endpwent();
+ return UIM_FALSE;
diff --git a/extra/uim/install b/extra/uim/install
new file mode 100644
index 000000000..ffed34d01
--- /dev/null
+++ b/extra/uim/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
+}