updated on Mon Jan 23 04:00:55 UTC 2012
[aur-mirror.git] / ibus-git / PKGBUILD
blobdeb63c47d15ddf916f648dd2d8c1f7d394c897e9
1 # Maintainer:  Jekyll Wu<adaptee [at] gmail [dot] com>
2 # Contributor: riverscn<riverscn at gmail.com>
3 # Contributor: Lee.MaRS<leemars at gmail.com>
5 pkgname=ibus-git
6 pkgver=20110501
7 pkgrel=1
8 pkgdesc="Next Generation Input Bus for Linux"
9 arch=('i686' 'x86_64')
10 license=('LGPL')
11 url="http://ibus.googlecode.com"
12 depends=('dbus-python>=0.83.0' 'gconf' 'gtk3' 'python2' 'pygtk' 'pyxdg' 'iso-codes' \
13          'librsvg' 'python-notify' 'hicolor-icon-theme' 'gobject-introspection')
14 optdepends=('notification-daemon')
15 makedepends=('git' 'intltool' 'gnome-common' 'gtk-doc' )
16 provides=('ibus=1.3')
17 options=('!libtool')
18 conflicts=('ibus')
19 install=ibus.install
21 _gitname="ibus"
22 _gitroot="git://github.com/phuang/ibus.git"
24 build() {
25   cd ${srcdir}
27   msg "Connecting to ${_gitname} GIT server..."
28   if [ -d ${_gitname} ]; then
29       cd ${_gitname} && git pull origin master
30       msg "The local files are updated."
31   else
32       git clone ${_gitroot}
33   fi
35   msg "GIT checkout done or server timeout. Preparing sources..."
36   rm -rf "${srcdir}/${_gitname}-build"
37   cp -r "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
38   cd "${srcdir}/${_gitname}-build"
40   # Add a missing file which breaks gnome-autogen.sh
41   touch ChangeLog
43   msg "Starting make..."
45   # python2 fix
46   for file in setup/ibus-setup.in ui/gtk/ibus-ui-gtk.in; do
47     sed -i 's_exec python_exec python2_' $file
48   done
50   #./autogen.sh --break-configure || return 1
51   ./autogen.sh  || return 1
53   ./configure \
54     PYTHON=/usr/bin/python2 \
55     --prefix=/usr \
56     --libexecdir=/usr/lib/ibus \
57     --sysconfdir=/etc \
58     --enable-gtk3 \
59     --enable-gtk-doc \
60     --enable-gtk-doc-html \
61     --with-gconf-schema-file-dir=/usr/share/gconf/schemas || return 1
63   make || return 1
66 package() {
67   cd "${srcdir}/${_gitname}-build"
68   make DESTDIR=${pkgdir} install || return 1
71 # vim:set ts=2 sw=2 et: