1 # Maintainer: Jekyll Wu<adaptee [at] gmail [dot] com>
2 # Contributor: riverscn<riverscn at gmail.com>
3 # Contributor: Lee.MaRS<leemars at gmail.com>
8 pkgdesc="Next Generation Input Bus for Linux"
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' )
22 _gitroot="git://github.com/phuang/ibus.git"
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."
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
43 msg "Starting make..."
46 for file in setup/ibus-setup.in ui/gtk/ibus-ui-gtk.in; do
47 sed -i 's_exec python_exec python2_' $file
50 #./autogen.sh --break-configure || return 1
51 ./autogen.sh || return 1
54 PYTHON=/usr/bin/python2 \
56 --libexecdir=/usr/lib/ibus \
60 --enable-gtk-doc-html \
61 --with-gconf-schema-file-dir=/usr/share/gconf/schemas || return 1
67 cd "${srcdir}/${_gitname}-build"
68 make DESTDIR=${pkgdir} install || return 1
71 # vim:set ts=2 sw=2 et: