summaryrefslogtreecommitdiff
path: root/community/fcitx-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/fcitx-anthy
parente445a313723389ba9ee1fded025c567dae5b21ea (diff)
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/fcitx-anthy')
-rw-r--r--community/fcitx-anthy/PKGBUILD33
-rw-r--r--community/fcitx-anthy/fcitx-anthy.install11
2 files changed, 44 insertions, 0 deletions
diff --git a/community/fcitx-anthy/PKGBUILD b/community/fcitx-anthy/PKGBUILD
new file mode 100644
index 000000000..4bb6d088f
--- /dev/null
+++ b/community/fcitx-anthy/PKGBUILD
@@ -0,0 +1,33 @@
+# $Id: PKGBUILD 93363 2013-07-02 09:47:20Z fyan $
+# Maintainer: Felix Yan <felixonmars@gmail.com>
+# Contributor: lh <jason52lh@gmail.com>
+
+pkgname=fcitx-anthy
+pkgver=0.2.0
+pkgrel=1
+pkgdesc="Fcitx Wrapper for anthy."
+arch=('i686' 'x86_64')
+url="http://code.google.com/p/fcitx"
+license=('GPL')
+depends=('fcitx>=4.2.5' 'anthy')
+makedepends=('cmake' 'intltool')
+source=("http://download.fcitx-im.org/$pkgname/$pkgname-$pkgver.tar.xz")
+install=fcitx-anthy.install
+
+build(){
+ cd "$srcdir"/${pkgname}-${pkgver}
+
+ rm -rf build
+ mkdir build
+ cd build
+
+ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ..
+ make
+}
+
+package() {
+ cd "$srcdir"/${pkgname}-${pkgver}/build
+ make DESTDIR=${pkgdir} install
+}
+
+md5sums=('c02e4393d6141a4d0fa1693bf38a8f79')
diff --git a/community/fcitx-anthy/fcitx-anthy.install b/community/fcitx-anthy/fcitx-anthy.install
new file mode 100644
index 000000000..6b1b64bdd
--- /dev/null
+++ b/community/fcitx-anthy/fcitx-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
+}