diff options
Diffstat (limited to 'community/ibus-pinyin/PKGBUILD')
-rw-r--r-- | community/ibus-pinyin/PKGBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/community/ibus-pinyin/PKGBUILD b/community/ibus-pinyin/PKGBUILD new file mode 100644 index 000000000..199e4534d --- /dev/null +++ b/community/ibus-pinyin/PKGBUILD @@ -0,0 +1,42 @@ +# $Id: PKGBUILD 31706 2010-11-04 13:42:40Z ibiru $ +# Contributor: Rainy <rainylau(at)gmail(dot)com> +# Contributor: Lee.maRS<leemars at gmail.com> +# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us> + +pkgname=ibus-pinyin +pkgver=1.3.11 +pkgrel=2 +pkgdesc='The PinYin Engine for IBus Input Framework.' +arch=('i686' 'x86_64') +license=('LGPL') +url='http://ibus.googlecode.com' +depends=('ibus' 'libsigc++2.0' 'boost-libs') +makedepends=('intltool' 'boost') +install="${pkgname}.install" +source=("http://ibus.googlecode.com/files/${pkgname}-${pkgver}.tar.gz" + "http://ibus.googlecode.com/files/pinyin-database-1.2.99.tar.bz2") +md5sums=('c49b2ccaae1f4e3c5cfbd25af6bea51a' + 'd0951b8daa7f56a2cbd3b6b4e42532e0') + +build() { + ln -sf ${srcdir}/pinyin-database-1.2.99.tar.bz2 \ + ${srcdir}/${pkgname}-${pkgver}/data/db/open-phrase + + cd ${pkgname}-${pkgver} + + sed -i -e "s|python|python2|" data/db/android/create_db.py \ + setup/ibus-setup-pinyin.in + + PYTHON=python2 ./configure \ + --prefix=/usr \ + --libexecdir=/usr/lib/ibus \ + --enable-db-open-phrase + + make +} + +package() { + cd ${pkgname}-${pkgver} + + make NO_INDEX=true DESTDIR=${pkgdir} install +} |