updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / ibus-3beol / PKGBUILD
blobf6591c618b4e2c2f6776ac0ff7f3aec553e4def8
1 # Contributor: Rainy <rainylau(at)gmail(dot)com>
2 # Contributor: Lee.MaRS <leemars at gmail dot com>
3 # Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
4 # Maintainer: Brad Fanella <bradfanella@archlinux.us>
6 pkgname=ibus-3beol
7 _pkgname=ibus
8 pkgver=1.4.0
9 pkgrel=1
10 # pkgdesc='Next Generation Input Bus for Linux.'
11 arch=('i686' 'x86_64')
12 license=('LGPL')
13 url='http://ibus.googlecode.com'
14 # depends=('dbus-python>=0.84.0' 'gconf' 'dconf' 'python2' 'pygtk' 'pyxdg' 'iso-codes' 'librsvg' 'python-notify' 'hicolor-icon-theme' 'gtk3')
15 # optdepends=('notification-daemon')
16 makedepends=('intltool')
17 options=('!libtool')
18 # install=ibus.install
19 source=("http://ibus.googlecode.com/files/${_pkgname}-${pkgver}.tar.gz"
20                 00_2011.11.20.0.git23abee8.patch
21                 00_2011.11.29.0.issue5431086_1.patch
22                 00_2011.11.29.1.issue5437062_4001.patch)
23 md5sums=('b4f063794e89c71eb1f8cb543210da30'
24          'e38c4644bd55e823222d8c9edb784af5'
25          'e5d841598c765651fc104c91320b4564'
26          '36ca00d507f8b1df3702ba8824a53ab1')
28 build() {
29         cd ${_pkgname}-${pkgver}
31         export PYTHON=python2
33         patch -Np1 -i "${srcdir}/00_2011.11.20.0.git23abee8.patch"
34         patch -Np1 -i "${srcdir}/00_2011.11.29.0.issue5431086_1.patch"
35         patch -Np1 -i "${srcdir}/00_2011.11.29.1.issue5437062_4001.patch"
37         ./configure \
38                 --prefix=/usr \
39                 --libexecdir=/usr/lib/ibus \
40                 --sysconfdir=/etc \
41                 --with-gconf-schema-file-dir=/usr/share/gconf/schemas \
42                 --enable-gtk3
44         # python2 fix
45         for file in setup/ibus-setup.in ui/gtk/ibus-ui-gtk.in; do
46                 sed -i 's_exec python_exec python2_' $file
47         done
49         make
52 package_ibus-3beol() {
53         pkgdesc='Next Generation Input Bus for Linux.'
54         depends=('dbus-python>=0.84.0' 'gconf' 'dconf' 'python2' 'pygtk' 'pyxdg' 'iso-codes' 'librsvg' 'python-notify' 'hicolor-icon-theme' 'gtk3')
55         provides=('ibus')
56         conflicts=('ibus')
57         install=ibus.install
58         optdepends=('notification-daemon')
59         cd ${_pkgname}-${pkgver}
61         export PYTHON=python2
63         make DESTDIR=${pkgdir} install
65         find ${pkgdir} -type f -exec sed -i 's_exec /usr/bin/python_exec /usr/bin/python2_' {} \;