updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / ibus-googlepinyin / PKGBUILD
blob8079184103895f672f8a07e1ed3fa7476f503a8d
1 # Author: Jiahua Huang <jhuangjiahua@gmail.com>
2 # Maintainer: Yangtse <yangtsesu@gmail.com> 
4 pkgname=ibus-googlepinyin
5 pkgver=0.1.1
6 pkgrel=2
7 pkgdesc="IBus Wrapper for libgooglepinyin"
8 arch=('any')
9 url="http://code.google.com/p/libgooglepinyin"
10 license=('APACHE')
11 optdepends=(
12     'opencc: for simplified chinese translation to tranditional chinese'
14 depends=('libgooglepinyin' 'ibus')
15 makedepends=('cmake')
16 conflicts=('ibus-googlepinyin-hg')
17 source=(http://libgooglepinyin.googlecode.com/files/${pkgname}-${pkgver}.tar.bz2)
19 build(){
20   cd "${srcdir}"
22   msg "Starting make..."
24   rm -rf "${srcdir}/build"
25   cp -rf "${srcdir}/${pkgname}-${pkgver}" "$srcdir/build"
26   cd "$srcdir/build"
28   find . -type f -name '*.py' | xargs sed -i 's|/usr/bin/python|/usr/bin/python2|g'
29   cmake -DCMAKE_INSTALL_PREFIX=/usr .
30   make DESTDIR=${pkgdir} install
33 md5sums=('a4dbe3bb70d755a0ad3e8d1b1e200f9c')