updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ibus-table-wubi-git / PKGBUILD
blob8cb588a64061fb2a4f51f6c4618a9b083d82a27c
1 # Contributor: Lee.MaRS<leemars at gmail.com>
2 pkgname=ibus-table-wubi-git
3 pkgver=20090731
4 pkgrel=1
5 pkgdesc="The Wubi Input Method of tables engines for IBus."
6 arch=('i686' 'x86_64')
7 url="http://code.google.com/p/ibus/"
8 license=('LGPL')
9 depends=('ibus-table=1.2.0')
10 provides=('ibus-table-wubi=1.2.0')
11 conflicts=('ibus-table-wubi')
12 makedepends=('git' 'cvs' 'ibus-table-extraphrase=1.2.0')
13 options=('!libtool')
14 source=()
15 md5sums=()
17 _gitroot="git://github.com/acevery/ibus-table-wubi.git"
18 _gitname="ibus-table-wubi"
20 build() {
21   cd "$srcdir"
22   msg "Connecting to GIT server...."
24   if [ -d $_gitname ] ; then
25     cd $_gitname && git pull origin master
26     msg "The local files are updated."
27   else
28     git clone $_gitroot
29   fi
31   msg "GIT checkout done or server timeout"
32   msg "Starting make..."
34   rm -rf "$srcdir/$_gitname-build"
35   cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36   cd "$srcdir/$_gitname-build"
38   #
39   # BUILD HERE
40   #
41   ./autogen.sh --break-configure 
42   ./configure --prefix=/usr --libexecdir=/usr/lib/ibus \
43               --enable-wubi86 \
44               --enable-wubi98 \
45               --enable-extra-phrases
46   make || return 1
47   make DESTDIR="$pkgdir/" install
48