updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / scim-sunpinyin-hg / PKGBUILD
blob95a432bda4603f6763fd560fd358c02b22160909
1 # Contributor: Lyman Li <lymanrb@gmail.com>
3 pkgname=scim-sunpinyin-hg
4 pkgver=20090425
5 pkgrel=1
6 pkgdesc="A SLM (Statistical Language Model) based pinyin IME"
7 arch=('i686' 'x86_64')
8 url="http://www.opensolaris.org/os/project/input-method/"
9 license=('CDDL' 'LGPL')
10 provides=('scim-sunpinyin')
11 conflicts=('scim-sunpinyin')
12 makedepends=('autoconf' 'automake' 'gcc' 'mercurial' 'openssh')
13 depends=('scim')
14 options=('!libtool')
15 source=()
16 md5sums=()
18 _hgname="inputmethod"
20 build() {
21     cd ${srcdir}
22     msg "Checkout source code, could be slow ..."
23     if [[ -d ${_hgname} ]]; then
24         (cd ${_hgname} && hg update)
25     else
26         hg clone ssh://anon@hg.opensolaris.org/hg/nv-g11n/inputmethod
27     fi
29     msg "Starting make ..."
30         cd ${_hgname}/sunpinyin/ime
31         ./autogen.sh --prefix=/usr \
32                 --enable-scim \
33                 --disable-cle \
34                 --disable-debug || return 1
35         make || return 1
36         make DESTDIR=${pkgdir} install || return 1