summaryrefslogtreecommitdiff
path: root/community/ibus/PKGBUILD
blob: 30708fafe0fb222f175128e3a9f49f91a1ea8e66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Contributor: Rainy <rainylau(at)gmail(dot)com>
# Contributor: Lee.MaRS <leemars at gmail dot com>
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
# Maintainer: Brad Fanella <bradfanella@archlinux.us>

pkgname=ibus
pkgver=1.4.0
pkgrel=1
pkgdesc='Next Generation Input Bus for Linux.'
arch=('i686' 'x86_64' 'mips64el')
license=('LGPL')
url='http://ibus.googlecode.com'
depends=('dbus-python>=0.84.0' 'gconf' 'dconf' 'python2' 'pygtk' 'pyxdg' 'iso-codes' 'librsvg' 'python-notify' 'hicolor-icon-theme' 'gtk3')
optdepends=('notification-daemon')
makedepends=('intltool')
options=('!libtool')
install=ibus.install
source=("http://ibus.googlecode.com/files/${pkgname}-${pkgver}.tar.gz")
md5sums=('b4f063794e89c71eb1f8cb543210da30')

build() {
  	cd ${pkgname}-${pkgver}

  	export PYTHON=python2

  	./configure \
    		--prefix=/usr \
    		--libexecdir=/usr/lib/ibus \
    		--sysconfdir=/etc \
    		--with-gconf-schema-file-dir=/usr/share/gconf/schemas \
    		--enable-gtk3

  	# python2 fix
  	for file in setup/ibus-setup.in ui/gtk/ibus-ui-gtk.in; do
    		sed -i 's_exec python_exec python2_' $file
  	done

  	make
}

package() {
  	cd ${pkgname}-${pkgver}

  	export PYTHON=python2

  	make DESTDIR=${pkgdir} install

  	find ${pkgdir} -type f -exec sed -i 's_exec /usr/bin/python_exec /usr/bin/python2_' {} \;
}