public
Last active

PKGBUILD of ibus-git

  • Download Gist
PKGBUILD
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
# Maintainer: Limao Luo <luolimao+AUR@gmail.com>
# Contributor: Jekyll Wu <adaptee@gmail.com>
# Contributor: riverscn <riverscn@gmail.com>
# Contributor: Lee.MaRS <leemars@gmail.com>
# Contributor: Techlvie Zheng <techlivezheng@gmail.com>
 
_pkgname=ibus
pkgname=${_pkgname}-git
pkgver=1.5.4.r15.g7587b8e
pkgrel=1
pkgdesc="Next Generation Input Bus for Linux"
arch=('i686' 'x86_64')
license=(LGPL2.1)
url=http://${_pkgname}.googlecode.com
depends=('hicolor-icon-theme' 'gtk2' 'gtk3' 'libnotify' 'python2-gobject')
makedepends=('gobject-introspection' 'gnome-common' 'vala' 'dconf' 'gconf' 'intltool' 'iso-codes')
provides=(${_pkgname} libibus)
conflicts=(${_pkgname} libibus)
options=(!emptydirs !libtool)
install=${_pkgname}.install
source=($pkgname::git://github.com/${_pkgname}/${_pkgname}.git)
sha1sums=('SKIP')
 
pkgver() {
cd ${pkgname}
git describe --tags --long --always | sed -E 's/([^-]*-g)/r\1/;s|-|.|g'
}
 
build() {
cd ${pkgname}
export PYTHON=python2
./autogen.sh \
--prefix=/usr \
--libexecdir=/usr/lib/${_pkgname} \
--sysconfdir=/etc \
--enable-dconf \
--disable-gconf \
--disable-memconf \
--enable-python-library
 
make
}
 
package() {
cd ${pkgname}
make DESTDIR="${pkgdir}" install
}
ibus.install
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
post_install() {
gtk-query-immodules-2.0 --update-cache
gtk-query-immodules-3.0 --update-cache
gtk-update-icon-cache -fq -t /usr/share/icons/hicolor
 
glib-compile-schemas /usr/share/glib-2.0/schemas
}
 
post_upgrade() {
post_install
}
 
post_remove() {
post_install
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.