updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / scim-googlepinyin / PKGBUILD
blob1a9dc3f703f1e5018eac1a262d0ef6664a09f529
1 # Contributor: Feng Wang <wanng.fenng@gmail.com>
3 pkgname=scim-googlepinyin
4 pkgver=20110803
5 pkgrel=1
6 pkgdesc="bring the open source Google pinyin IME for Android to GNU/Linux."
7 arch=('i686' 'x86_64')
8 url="http://code.google.com/p/scim-googlepinyin/"
9 license=('Apache License 2.0')
10 depends=( 'scim' 'gtk2' 'glib2' )
11 makedepends=('git')
12 #install=( 'scim-googlepinyin.install' )
13 source=()
14 md5sums=()
16 _gitroot="git://github.com/tchaikov/scim-googlepinyin.git"
17 _gitname="scim-googlepinyin"
19 build() {
20   cd "$srcdir"
22   msg "Connecting to $_gitroot..."
23   if [ -d $_gitname ]; then
24     cd $_gitname && git pull origin && cd ..
25   else
26     git clone $_gitroot
27   fi
29   rm -rf $_gitname-build
30   git clone $_gitname $_gitname-build
32   cd $_gitname-build
33   ./autogen.sh || return 1
34   make || return 1
36   make DESTDIR="$pkgdir" install || return 1