updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / fcitx-cloudpinyin-git / PKGBUILD
blob5322a2131847aaa061cf29490d706ef11a19c309
1 #Contributor: poplarch <poplarch@gmail.com>
2 pkgname=fcitx-cloudpinyin-git
3 pkgver=20111019
4 pkgrel=1
5 pkgdesc="This is a standalone module for fcitx, it can use pinyin API on the internet to input."
6 arch=('i686' 'x86_64')
7 url="https://github.com/fcitx/fcitx-cloudpinyin"
8 license=('GPL')
9 depends=('fcitx-git')
10 makedepends=('git' 'cmake' 'intltool')
11 provides=(fcitx-cloudpinyin)
12 conflicts=('fcitx-cloudpinyin')
13 source=()
14 md5sums=()
16 _gitroot="git://github.com/fcitx/fcitx-cloudpinyin.git"
17 _gitname="fcitx-cloudpinyin"
19 build(){
20   cd "$srcdir"
21   msg "Connecting to the GIT server...."
23   if [[ -d $srcdir/$_gitname ]] ; then
24     cd $_gitname
25     git pull origin
26     msg "The local files are updated."
27   else
28     git clone $_gitroot
29   fi
31   msg "GIT checkout done"
32   msg "Starting make..."
34   rm -rf "$srcdir/$_gitname-build"
35   git clone $srcdir/$_gitname $srcdir/$_gitname-build
36   cd "$srcdir/$_gitname-build"
38   cmake -DCMAKE_INSTALL_PREFIX=/usr .
39   make DESTDIR=${pkgdir} install