void-packages/srcpkgs/ibus/template
2014-04-04 18:07:59 +02:00

58 lines
1.6 KiB
Text

# Template file for 'ibus'
pkgname=ibus
version=1.5.6
revision=1
build_style=gnu-configure
configure_args="--enable-ui --enable-gtk3 --disable-python
--disable-schemas-compile --enable-memconf
--disable-schemas-install --enable-dconf --disable-gconf"
hostmakedepends="libtool pkg-config intltool dconf GConf python glib-devel"
makedepends="dconf-devel>=0.13.90 librsvg-devel gtk+-devel gtk+3-devel
vala-devel libnotify-devel hicolor-icon-theme iso-codes dbus-x11 pyxdg"
depends="hicolor-icon-theme iso-codes dbus-x11 pyxdg"
triggers="gtk-immodules gtk3-immodules"
short_desc="Intelligent Input Bus"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://ibus.googlecode.com"
license="LGPL-2.1"
distfiles="https://github.com/ibus/ibus/releases/download/${version}/ibus-${version}.tar.gz"
checksum=f689fa796ad6a9b841d254a91ce2736381672d110a1fe23ebbeff200911b1b5c
# Package build options
build_options="gir"
desc_option_gir="Enable support for building gobject introspection data"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
if [ "$build_option_gir" ]; then
configure_args+=" --enable-introspection"
makedepends+=" gobject-introspection"
else
configure_args+=" --disable-introspection"
fi
pre_configure() {
libtoolize -f
}
pre_install() {
vmkdir etc/dconf/db
}
ibus-devel_package() {
depends="libglib-devel ibus-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove usr/share/gtk-doc
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
vmove usr/share/vala
fi
}
}