summaryrefslogtreecommitdiff
path: root/community/fcitx-libpinyin
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-11-13 01:32:19 -0800
committerroot <root@rshg054.dnsready.net>2012-11-13 01:32:19 -0800
commita29329c38e50afd28d28c3a99e35d8774b9b19f8 (patch)
tree42f4b2e44d0f2fcce6dff4f44ba48e623437b16e /community/fcitx-libpinyin
parentb863c91c6c9218e2ad9458231b24385be177ed08 (diff)
Tue Nov 13 01:32:13 PST 2012
Diffstat (limited to 'community/fcitx-libpinyin')
-rw-r--r--community/fcitx-libpinyin/PKGBUILD34
-rw-r--r--community/fcitx-libpinyin/fcitx-libpinyin.install11
2 files changed, 45 insertions, 0 deletions
diff --git a/community/fcitx-libpinyin/PKGBUILD b/community/fcitx-libpinyin/PKGBUILD
new file mode 100644
index 000000000..3bf6506ee
--- /dev/null
+++ b/community/fcitx-libpinyin/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars@gmail.com>
+# Contributor: poplarch <poplarch@gmail.com>
+
+pkgname=fcitx-libpinyin
+pkgver=0.2.1
+pkgrel=1
+pkgdesc="Libpinyin Wrapper for Fcitx."
+arch=('i686' 'x86_64')
+url="https://github.com/fcitx/fcitx-libpinyin"
+license=('GPL')
+depends=('fcitx>=4.2.0' 'libpinyin>=0.3.0')
+makedepends=('cmake' 'intltool' 'wget')
+provides=('fcitx-libpinyin')
+source=("http://fcitx.googlecode.com/files/${pkgname}-${pkgver}.tar.xz")
+install='fcitx-libpinyin.install'
+
+build() {
+ cd "$srcdir"/${pkgname}-${pkgver}
+
+ rm -rf build
+ mkdir build
+ cd build
+
+ msg "Starting make..."
+
+ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ..
+ make
+}
+
+package() {
+ cd "$srcdir"/${pkgname}-${pkgver}/build
+ make DESTDIR="${pkgdir}" install
+}
+md5sums=('9ff621f6f16ab426ff01652b1ffc06a7')
diff --git a/community/fcitx-libpinyin/fcitx-libpinyin.install b/community/fcitx-libpinyin/fcitx-libpinyin.install
new file mode 100644
index 000000000..c0797237a
--- /dev/null
+++ b/community/fcitx-libpinyin/fcitx-libpinyin.install
@@ -0,0 +1,11 @@
+post_install() {
+ xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}