From c84b2cd310f86dc50c4f52a5907cb17652e8c87c Mon Sep 17 00:00:00 2001 From: root Date: Wed, 17 Oct 2012 01:15:52 -0700 Subject: Wed Oct 17 01:14:52 PDT 2012 --- community-testing/ibus/PKGBUILD | 40 +++++++++++++++++++++++++++++++++++++ community-testing/ibus/ibus.install | 29 +++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 community-testing/ibus/PKGBUILD create mode 100644 community-testing/ibus/ibus.install (limited to 'community-testing/ibus') diff --git a/community-testing/ibus/PKGBUILD b/community-testing/ibus/PKGBUILD new file mode 100644 index 000000000..63dd39df2 --- /dev/null +++ b/community-testing/ibus/PKGBUILD @@ -0,0 +1,40 @@ +# $Id: PKGBUILD 78054 2012-10-16 11:51:03Z allan $ +# Contributor: Rainy +# Contributor: Lee.MaRS +# Contributor: Daniel J Griffiths +# Maintainer: Brad Fanella + +pkgname=ibus +pkgver=1.4.2 +pkgrel=2 +pkgdesc="Next Generation Input Bus for Linux" +arch=('i686' 'x86_64') +url="http://ibus.googlecode.com" +license=('LGPL') +depends=('python2-dbus' 'gconf' 'dconf' 'python2-xdg' \ + 'iso-codes' 'librsvg' 'python2-notify' 'hicolor-icon-theme') +makedepends=('intltool' 'gobject-introspection') +optdepends=('notification-daemon') +options=('!libtool') +install=ibus.install +source=(http://ibus.googlecode.com/files/${pkgname}-${pkgver}.tar.gz) +sha1sums=('a2d11d8bb64761691df918e9e50f0b35c711760d') + +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 + make +} + +package() { + cd ${pkgname}-${pkgver} + make DESTDIR="${pkgdir}" install + install -d "${pkgdir}/etc/xdg/autostart" + ln -s /usr/share/applications/ibus.desktop "${pkgdir}/etc/xdg/autostart/ibus.desktop" +} diff --git a/community-testing/ibus/ibus.install b/community-testing/ibus/ibus.install new file mode 100644 index 000000000..f44e3be1d --- /dev/null +++ b/community-testing/ibus/ibus.install @@ -0,0 +1,29 @@ +post_install() { + gtk-query-immodules-2.0 > etc/gtk-2.0/gtk.immodules + + gconfpkg --install ibus + gtk-update-icon-cache -fq -t usr/share/icons/hicolor + + # update for gkt3 + gtk-query-immodules-3.0 --update-cache +} + +pre_upgrade() { + pre_remove $1 +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + gconfpkg --uninstall ibus +} + +post_remove() { + gtk-query-immodules-2.0 > etc/gtk-2.0/gtk.immodules + gtk-update-icon-cache -fq -t usr/share/icons/hicolor + + # update for gkt3 + gtk-query-immodules-3.0 --update-cache +} -- cgit v1.2.3-54-g00ecf