summaryrefslogtreecommitdiff
path: root/community/fcitx-rime
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-11-27 02:19:29 -0800
committerroot <root@rshg054.dnsready.net>2012-11-27 02:19:29 -0800
commitc008601effc878e60852f7928ddadcf5a16eb851 (patch)
tree50f2e1a3e779a9a93deadc396c29f80c6f24de0e /community/fcitx-rime
parentd41782ebd2416faf39268ec9a2c3242430390308 (diff)
Tue Nov 27 02:14:24 PST 2012
Diffstat (limited to 'community/fcitx-rime')
-rw-r--r--community/fcitx-rime/PKGBUILD46
-rw-r--r--community/fcitx-rime/fcitx-rime.install11
2 files changed, 57 insertions, 0 deletions
diff --git a/community/fcitx-rime/PKGBUILD b/community/fcitx-rime/PKGBUILD
new file mode 100644
index 000000000..6d9cee68c
--- /dev/null
+++ b/community/fcitx-rime/PKGBUILD
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars@gmail.com>
+# Contributor: lh <jason52lh@gmail.com>
+
+pkgname=fcitx-rime
+pkgver=0.1.2
+pkgrel=2
+_rimever=0.9.3
+pkgdesc="Fcitx Wrapper for librime"
+arch=('i686' 'x86_64')
+url="http://code.google.com/p/fcitx"
+license=('GPL')
+depends=('fcitx>=4.2.0' "librime>=$_rimever" "brise")
+makedepends=('cmake' 'intltool')
+install='fcitx-rime.install'
+source=(
+ "rime-$_rimever.tar.gz::https://github.com/lotem/brise/tarball/rime-$_rimever"
+ "http://fcitx.googlecode.com/files/$pkgname-$pkgver.tar.xz"
+)
+
+_brise_name=lotem-brise-149c684
+
+build() {
+ cd "$srcdir"
+ rm -rf brise/
+ cp -r ${_brise_name}/ brise/
+
+ msg "Starting make..."
+
+ cd "$pkgname-$pkgver"
+
+ rm -rf build
+ mkdir build
+ cd build
+
+ cmake -DCMAKE_INSTALL_PREFIX=/usr ..
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver/build"
+ make DESTDIR="$pkgdir" install
+}
+
+md5sums=('7a210167c0e5a474716a3bd1d553ff5a'
+ '3b1d2ad3363910ed214672078c72e23f')
diff --git a/community/fcitx-rime/fcitx-rime.install b/community/fcitx-rime/fcitx-rime.install
new file mode 100644
index 000000000..c0797237a
--- /dev/null
+++ b/community/fcitx-rime/fcitx-rime.install
@@ -0,0 +1,11 @@
+post_install() {
+ xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}