summaryrefslogtreecommitdiff
path: root/community/ibus-anthy
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
committerroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
commit8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch)
tree03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/ibus-anthy
parente445a313723389ba9ee1fded025c567dae5b21ea (diff)
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/ibus-anthy')
-rw-r--r--community/ibus-anthy/PKGBUILD37
-rw-r--r--community/ibus-anthy/ibus-anthy.install11
2 files changed, 48 insertions, 0 deletions
diff --git a/community/ibus-anthy/PKGBUILD b/community/ibus-anthy/PKGBUILD
new file mode 100644
index 000000000..d5c01654d
--- /dev/null
+++ b/community/ibus-anthy/PKGBUILD
@@ -0,0 +1,37 @@
+# $Id: PKGBUILD 90641 2013-05-13 13:18:31Z fyan $
+# Maintainer: Felix Yan <felixonmars@gmail.com>
+# Contributor: Rainy <rainylau(at)gmail(dot)com>
+# Contributor: Lee.MaRS <leemars at gmail dot com>
+# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
+
+pkgname=ibus-anthy
+pkgver=1.5.3
+pkgrel=1
+pkgdesc='Japanese input method Anthy IMEngine for IBus Framework'
+arch=('i686' 'x86_64')
+license=('LGPL')
+url='http://ibus.googlecode.com'
+depends=('ibus' 'anthy' 'python2' 'pygtk' 'gtk-update-icon-cache')
+makedepends=('swig' 'intltool')
+options=('!libtool')
+install=$pkgname.install
+source=("http://ibus.googlecode.com/files/${pkgname}-${pkgver}.tar.gz")
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+
+ # python2 fix
+ for file in setup/ibus-setup-anthy.in engine/ibus-engine-anthy.in; do
+ sed -i 's_exec python_exec python2_' $file
+ done
+
+ ./configure --prefix=/usr --libexec=/usr/lib/ibus
+ make
+}
+
+package() {
+ cd $srcdir/$pkgname-$pkgver
+ make DESTDIR=$pkgdir/ install
+}
+
+sha512sums=('490a89ef78e31ad9e0f61aadd1d93b7a670852a765cc784cbfa307a208aab4344e851dceee316dd04bdf004e901a1b23bf40ff505e55fa18ab9dafdf097263d3')
diff --git a/community/ibus-anthy/ibus-anthy.install b/community/ibus-anthy/ibus-anthy.install
new file mode 100644
index 000000000..6b1b64bdd
--- /dev/null
+++ b/community/ibus-anthy/ibus-anthy.install
@@ -0,0 +1,11 @@
+post_install() {
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}