# $Id: PKGBUILD 79278 2012-11-02 10:15:38Z bpiotrowski $ # Contributor: Rainy # Contributor: Lee.MaRS # Maintainer: Daniel J Griffiths pkgname=ibus-anthy pkgver=1.4.99.20121006 pkgrel=1 pkgdesc='Japanese input method Anthy IMEngine for IBus Framework' arch=('i686' 'x86_64') license=('LGPL') url='http://ibus.googlecode.com' depends=('ibus' 'anthy' 'python2' 'pygtk') makedepends=('swig' 'intltool') options=('!libtool') source=(http://ibus.googlecode.com/files/${pkgname}-${pkgver}.tar.gz) md5sums=('518aa503ce40054e0027f2a79c9df640') build() { cd $srcdir/$pkgname-$pkgver # python2 fix for file in setup/ibus-setup-anthy.in engine/ibus-engine-anthy.in; do sed -i 's_exec python_exec python2_' $file done ./configure --prefix=/usr --libexec=/usr/lib/ibus make } package() { cd $srcdir/$pkgname-$pkgver make DESTDIR=$pkgdir/ install }