# Contributor: Carlo Landmeter # Maintainer: pkgname=ibus pkgver=1.5.12 pkgrel=0 pkgdesc="Intelligent Input Bus" url="http://ibus.googlecode.com" arch="all" license="LGPL" depends="hicolor-icon-theme" depends_dev="glib-dev gtk+3.0-dev gtk+2.0-dev gobject-introspection-dev libnotify-dev dconf-dev gconf-dev" makedepends="$depends_dev intltool iso-codes vala iso-codes-dev" install="" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-libs $pkgname-gtk2 $pkgname-gtk3" source="https://ibus.googlecode.com/files/ibus-$pkgver.tar.gz" source="https://github.com/ibus/ibus/releases/download/$pkgver/ibus-$pkgver.tar.gz" _builddir="$srcdir"/ibus-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ --enable-ui \ --disable-gconf \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 } libs() { pkgdesc="ibus libraries" depends="" cd "$_builddir" mkdir -p "$subpkgdir"/usr/lib/girepository-1.0 mv "$pkgdir"/usr/lib/libibus-*.so.* \ "$subpkgdir"/usr/lib/ || return 1 mv "$pkgdir"/usr/lib/girepository-1.0/IBus-1.0.typelib \ "$subpkgdir"/usr/lib/girepository-1.0/ || return 1 } gtk2() { pkgdesc="ibus Gtk 2.0 bindings" depends="" mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/gtk-2.0 \ "$subpkgdir"/usr/lib/ || return 1 } gtk3() { pkgdesc="ibus Gtk 3.0 bindings" depends="" mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/gtk-3.0 \ "$subpkgdir"/usr/lib/ || return 1 } md5sums="35fdd5462347c248cd02f1d522a22c94 ibus-1.5.12.tar.gz" sha256sums="e24da95995f4aca5b96359eaba709487dc5ad4c732e9b01b9bcf9fb34be2442c ibus-1.5.12.tar.gz" sha512sums="a443bf0d1b71a52c18e7d13a0c69f38c48f6924cfb1669912880b87be1bf41bcb7d8d6252aafd6799e43d41c081fd94cf334fd836a0505c93a4e5c5b68241c81 ibus-1.5.12.tar.gz"