updated on Wed Jan 11 08:01:35 UTC 2012
[aur-mirror.git] / ibus-sunpinyin-git / PKGBUILD
blob61ca1adb665c75928e5acde24ea57b91ac5f5d4a
1 # Maintainer: Liu Chang <goduck777@gmail.com>
2  
3 pkgname=ibus-sunpinyin-git
4 pkgver=20101201
5 pkgrel=1
6 pkgdesc='The Sunpinyin ibus wrapper. Sunpinyin is a statistical language model based pinyin IME by Sun.'
7 arch=('i686' 'x86_64')
8 license=('LGPL')
9 depends=('ibus' 'sunpinyin-git' 'sqlite3' 'gettext')
10 makedepends=('git' 'pkgconfig' 'scons' 'intltool')
11 url='http://code.google.com/p/sunpinyin/'
12 conflicts=('ibus-sunpinyin')
13 provides=('ibus-sunpinyin')
14 source=()
15 md5sums=()
17 _gitroot="git://github.com/sunpinyin/sunpinyin.git"
18 _gitname="sunpinyin"
20 build() {
21   cd $srcdir
22   msg "Connecting to the GIT server...."
23   
24   if [[ -d $srcdir/$_gitname ]] ; then
25     cd $_gitname
26     git pull origin
27     msg "The local files are updated."
28   else
29     git clone $_gitroot
30   fi
31   
32   msg "GIT checkout done"
33   msg "Starting make..."
35   git clone $srcdir/$_gitname $srcdir/$_gitname-build
36   cd $srcdir/$_gitname-build
37   
38   cd wrapper/ibus
39   sed -i -e "s|python|python2|" setup/ibus-setup-sunpinyin.in
40   scons --prefix=/usr
41   scons install --prefix=/usr --install-sandbox=$pkgdir || return 1
43   rm -rf $srcdir/$_gitname-build