summaryrefslogtreecommitdiff
path: root/community/ibus-chewing
diff options
context:
space:
mode:
Diffstat (limited to 'community/ibus-chewing')
-rw-r--r--community/ibus-chewing/PKGBUILD36
-rw-r--r--community/ibus-chewing/ibus-chewing.install17
2 files changed, 53 insertions, 0 deletions
diff --git a/community/ibus-chewing/PKGBUILD b/community/ibus-chewing/PKGBUILD
new file mode 100644
index 000000000..1f688da6c
--- /dev/null
+++ b/community/ibus-chewing/PKGBUILD
@@ -0,0 +1,36 @@
+# $Id: PKGBUILD 57032 2011-10-18 21:32:56Z ebelanger $
+# Maintainer: Thomas Dziedzic < gostrc at gmail >
+# Contributor: Rainy <rainylau(at)gmail(dot)com>
+# Contributor: Lee.MaRS <leemars@gmail.com>
+# Contributor: Hiroshi Yui <hiroshiyui@gmail.com>
+
+pkgname=ibus-chewing
+pkgver=1.3.10
+pkgrel=1
+pkgdesc='Chinese Chewing Engine for IBus Framework'
+arch=('i686' 'x86_64' 'mips64el')
+license=('GPL')
+url='http://ibus.googlecode.com'
+depends=('ibus' 'libchewing' 'libxtst')
+makedepends=('swig' 'cmake' 'gob2')
+install=ibus-chewing.install
+source=(http://ibus.googlecode.com/files/${pkgname}-${pkgver}-Source.tar.gz
+ https://fedorahosted.org/releases/c/m/cmake-fedora/cmake-fedora-modules-only-latest.tar.gz)
+md5sums=('2a447828ca9290dd6bdf2336b2889bb0'
+ 'eb24ff0ec5b7646dd1b077f3b379712b')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}-Source"
+ tar -xzf ../cmake-fedora-modules-only-latest.tar.gz
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DSYSCONF_INSTALL_DIR=/usr/share \
+ -DLIBEXEC_DIR=/usr/lib/ibus \
+ .
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}-Source"
+ make DESTDIR="${pkgdir}" install
+}
diff --git a/community/ibus-chewing/ibus-chewing.install b/community/ibus-chewing/ibus-chewing.install
new file mode 100644
index 000000000..0cfc09857
--- /dev/null
+++ b/community/ibus-chewing/ibus-chewing.install
@@ -0,0 +1,17 @@
+pkgname=ibus-chewing
+
+post_install() {
+ usr/sbin/gconfpkg --install ${pkgname}
+}
+
+pre_upgrade() {
+ pre_remove $1
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ usr/sbin/gconfpkg --uninstall ${pkgname}
+}