summaryrefslogtreecommitdiff
path: root/community/ibus-pinyin/PKGBUILD
blob: 199e4534def5762d1a8754b9fad92b81185f3421 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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
}