summaryrefslogtreecommitdiff
path: root/community/ibus-sunpinyin/PKGBUILD
blob: 694a6a67ac98b9cca3d730d53afb37468e04de6b (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')
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
}