summaryrefslogtreecommitdiff
path: root/community/fcitx-libpinyin/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/fcitx-libpinyin/PKGBUILD')
-rw-r--r--community/fcitx-libpinyin/PKGBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/community/fcitx-libpinyin/PKGBUILD b/community/fcitx-libpinyin/PKGBUILD
new file mode 100644
index 000000000..cb7ec4e01
--- /dev/null
+++ b/community/fcitx-libpinyin/PKGBUILD
@@ -0,0 +1,35 @@
+# $Id: PKGBUILD 94202 2013-07-16 16:30:47Z fyan $
+# Maintainer: Felix Yan <felixonmars@gmail.com>
+# Contributor: poplarch <poplarch@gmail.com>
+
+pkgname=fcitx-libpinyin
+pkgver=0.3.1
+pkgrel=1
+pkgdesc="Fcitx Wrapper for libpinyin, Library to deal with pinyin"
+arch=('i686' 'x86_64')
+url="https://github.com/fcitx/fcitx-libpinyin"
+license=('GPL')
+depends=('fcitx' 'libpinyin' 'fcitx-qt4' 'qtwebkit')
+makedepends=('cmake' 'intltool' 'wget')
+source=("http://download.fcitx-im.org/$pkgname/$pkgname-${pkgver}_dict.tar.xz")
+install=$pkgname.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
+}
+
+sha512sums=('3b7501a75dab2f5b83541c71ccac93709f3354f390f322d7b95e4b94e0c4dc6963522759ab52eb77203d787d6d14d3ce1c838dd92ecd0db041a3b7a25008eaa4')