diff options
author | root <root@rshg054.dnsready.net> | 2012-01-31 23:14:57 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-01-31 23:14:57 +0000 |
commit | c34f78dd37c2a2015d43de5d89748a2f8147ba1b (patch) | |
tree | 2e3912930db02e8f8cbfa8a58eae203b886fa2d9 /community/ibus/PKGBUILD | |
parent | 902eddd7e029eda6fc1c668b31e696c6ca3edbc7 (diff) |
Tue Jan 31 23:14:56 UTC 2012
Diffstat (limited to 'community/ibus/PKGBUILD')
-rw-r--r-- | community/ibus/PKGBUILD | 57 |
1 files changed, 28 insertions, 29 deletions
diff --git a/community/ibus/PKGBUILD b/community/ibus/PKGBUILD index 445e8fd37..6071b1254 100644 --- a/community/ibus/PKGBUILD +++ b/community/ibus/PKGBUILD @@ -1,3 +1,4 @@ +# $Id: PKGBUILD 63348 2012-01-30 21:56:05Z ebelanger $ # Contributor: Rainy <rainylau(at)gmail(dot)com> # Contributor: Lee.MaRS <leemars at gmail dot com> # Contributor: Daniel J Griffiths <ghost1227@archlinux.us> @@ -5,45 +6,43 @@ pkgname=ibus pkgver=1.4.0 -pkgrel=1 -pkgdesc='Next Generation Input Bus for Linux.' +pkgrel=2 +pkgdesc="Next Generation Input Bus for Linux" arch=('i686' 'x86_64') +url="http://ibus.googlecode.com" 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') +depends=('dbus-python>=0.84.0' 'gconf' 'dconf' 'pyxdg' \ + 'iso-codes' 'librsvg' 'python-notify' 'hicolor-icon-theme') +makedepends=('intltool' 'gobject-introspection') 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 + 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_' {} \; + cd ${pkgname}-${pkgver} + export PYTHON=python2 + make DESTDIR="${pkgdir}" install + install -d "${pkgdir}/etc/xdg/autostart" + ln -s /usr/share/applications/ibus.desktop "${pkgdir}/etc/xdg/autostart/ibus.desktop" + find "${pkgdir}" -type f -exec sed -i 's_exec /usr/bin/python_exec /usr/bin/python2_' {} \; } |