summaryrefslogtreecommitdiff
path: root/community/ibus-sunpinyin/PKGBUILD
blob: 59e1170eacef24ec5e18a7a4eba809d1756cf829 (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
# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>

pkgname=ibus-sunpinyin
pkgver=2.0.3
pkgrel=1
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 ibus-sunpinyin-${pkgver}

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

  scons \
    --prefix=/usr
}

package() {
  cd ibus-sunpinyin-${pkgver}

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