void-packages/srcpkgs/ibus/template

55 lines
1.7 KiB
Bash

# Template file for 'ibus'
pkgname=ibus
version=1.5.14
revision=1
build_style=gnu-configure
configure_args="--enable-ui --enable-gtk3 --disable-python
--disable-tests --disable-schemas-compile --enable-memconf
--disable-schemas-install --enable-dconf --disable-gconf
--disable-emoji-dict
$(vopt_enable gir introspection) $(vopt_enable ibus_setup setup)"
hostmakedepends="automake gettext-devel libtool pkg-config intltool
dconf GConf python glib-devel $(vopt_if gir gobject-introspection)"
makedepends="dconf-devel librsvg-devel gtk+-devel gtk+3-devel json-glib-devel
vala-devel libnotify-devel hicolor-icon-theme iso-codes dbus-x11 python-xdg"
depends="hicolor-icon-theme iso-codes dbus-x11 python-xdg
$(vopt_if ibus_setup 'python-gobject>=3.12.1_3')"
triggers="gtk-immodules gtk3-immodules"
short_desc="Intelligent Input Bus"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="https://github.com/ibus/ibus"
license="LGPL-2.1"
distfiles="https://github.com/ibus/ibus/releases/download/${version}/ibus-${version}.tar.gz"
checksum=a42b40fe4642f36bf2a6f0b4649f54f4043812d6bfee4faca38117799a009d3c
# Package build options
build_options="gir ibus_setup"
desc_option_ibus_setup="Enable support for building the ibus setup UI"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir ibus_setup"
fi
pre_configure() {
autoreconf -fi
}
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
}
}