Created
October 6, 2011 07:23
-
-
Save crabtw/1266745 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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.3.9 | |
pkgrel=3 | |
pkgdesc='Next Generation Input Bus for Linux.' | |
arch=('i686' 'x86_64') | |
license=('LGPL') | |
url='http://ibus.googlecode.com' | |
depends=('dbus-python>=0.83.0' 'gconf' '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=('57345a3c1cfe37ce3825f6221676dcfe') | |
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_' {} \; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment