updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ibus-engine-git / PKGBUILD
blob3ec6970629d6a849cff06f81ded0b82a421e2bf0
1 # Contributor: riverscn<riverscn at gmail.com>
2 # Contributor: Lee.MaRS<leemars at gmail.com>
3 pkgname=ibus-engine-git
4 pkgver=20080906
5 pkgrel=1
6 pkgdesc="IBus - Intelligent Input Bus, a next generation input framework."
7 arch=('i686' 'x86_64')
8 url="http://code.google.com/p/ibus/"
9 license=('LGPL')
10 depends=('dbus-python>=0.83.0' 'gnome-python' 'python>=2.5.0' 'pyxdg')
11 makedepends=('git' 'cvs' 'qt>=4.4.0')
12 provides=('ibus-engine')
13 conflicts=('ibus-engine')
14 options=('!libtool')
15 install=ibus.install
16 source=()
17 md5sums=()
19 _gitroot="git://github.com/phuang/ibus.git"
20 _gitname="ibus"
22 build() {
23   cd "$srcdir"
24   msg "Connecting to GIT server...."
26   if [ -d $_gitname ] ; then
27     cd $_gitname && git pull origin
28     msg "The local files are updated."
29   else
30     git clone $_gitroot
31   fi
33   msg "GIT checkout done or server timeout"
34   msg "Starting make..."
36   rm -r "$srcdir/$_gitname-build"
37   cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
38   cd "$srcdir/$_gitname-build"
40   #
41   # BUILD HERE
42   #
44   ./autogen.sh --prefix=/usr
45   make || return 1
46   make DESTDIR="$pkgdir/" install
47