summaryrefslogtreecommitdiff
path: root/community/ibus-sunpinyin/PKGBUILD
blob: f187ec36fcace6685abb3eb537d6e060a8d69e89 (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
# $Id: PKGBUILD 56121 2011-10-02 03:13:11Z ebelanger $
# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>

pkgname=ibus-sunpinyin
pkgver=2.0.3
pkgrel=2
pkgdesc='The SunPinYin Engine for IBus Input Framework. SunPinYin is a Statistical Language Model based pinyin IME by Sun.'
arch=('i686' 'x86_64' 'mips64el')
url='http://sunpinyin.googlecode.com'
license=('LGPL')
depends=('ibus' 'sunpinyin')
makedepends=('scons')
source=("http://sunpinyin.googlecode.com/files/ibus-sunpinyin-${pkgver}.tar.gz")
md5sums=('e678b2e1ac70c325cfc64c02fef7041f')

build() {
  cd "${srcdir}/ibus-sunpinyin-${pkgver}"

  sed -i 's/python/&2/' setup/ibus-setup-sunpinyin.in

  scons \
    --prefix=/usr
}

package() {
  cd "${srcdir}/ibus-sunpinyin-${pkgver}"

  scons \
    --prefix=/usr \
    --install-sandbox="${pkgdir}" \
    install
}