void-packages/srcpkgs/ibus/template
2019-12-24 12:24:35 +01:00

54 lines
1.8 KiB
Bash

# Template file for 'ibus'
pkgname=ibus
version=1.5.21
revision=2
build_style=gnu-configure
build_helper="gir"
configure_args="--enable-ui --enable-gtk3 --disable-tests
--disable-schemas-compile --enable-memconf --enable-dconf
--disable-emoji-dict --disable-unicode-dict --enable-wayland
--enable-python2 --with-python=/usr/bin/python3
$(vopt_enable gir introspection) $(vopt_enable ibus_setup setup)
$(vopt_enable vala)"
hostmakedepends="gettext-devel libtool pkg-config intltool dconf
python3 python glib-devel $(vopt_if vala vala) python-gobject-devel"
makedepends="dconf-devel gtk+-devel hicolor-icon-theme iso-codes
json-glib-devel libnotify-devel librsvg-devel python3-xdg
$(vopt_if vala vala) libXtst-devel"
depends="hicolor-icon-theme iso-codes dbus-x11 python3-xdg
$(vopt_if ibus_setup 'python3-gobject>=3.12.1_3')"
short_desc="Intelligent Input Bus"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://github.com/ibus/ibus"
distfiles="https://github.com/ibus/ibus/releases/download/${version}/ibus-${version}.tar.gz"
checksum=adc1e5e620d6a89a49306f022b50561f2c05218dec13d0c9b136dc8b6568a2b9
build_options="gir vala ibus_setup"
desc_option_ibus_setup="Enable support for building the ibus setup UI"
build_options_default="gir vala ibus_setup"
pre_install() {
vmkdir etc/dconf/db
}
post_install() {
vinstall bindings/pygobject/gi/overrides/IBus.py 644 ${py3_sitelib}/gi/overrides
}
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
fi
if [ "$build_option_vala" ]; then
vmove usr/share/vala
fi
}
}