56 lines
1.8 KiB
Bash
56 lines
1.8 KiB
Bash
# Template file for 'ibus'
|
|
pkgname=ibus
|
|
version=1.5.26
|
|
revision=2
|
|
build_style=gnu-configure
|
|
build_helper="gir"
|
|
configure_args="--enable-ui --enable-gtk3 --enable-gtk4
|
|
--disable-tests --disable-schemas-compile --disable-systemd-services
|
|
--enable-memconf --enable-dconf --enable-wayland
|
|
--with-python=/usr/bin/python3
|
|
$(vopt_enable dicts emoji-dict) $(vopt_enable dicts unicode-dict)
|
|
--enable-introspection --enable-vala $(vopt_enable ibus_setup setup)"
|
|
hostmakedepends="automake gettext-devel libtool pkg-config intltool dconf
|
|
python3 glib-devel $(vopt_if vala vala)
|
|
$(vopt_if dicts 'cldr-emoji-annotation unicode-character-database unicode-emoji')"
|
|
makedepends="dconf-devel gtk+-devel gtk4-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=5c2fd118e7bfd4e9a42c3a20e6175a263426c90b6256f94989ed3d0384f4c9fc
|
|
|
|
build_options="ibus_setup dicts"
|
|
desc_option_ibus_setup="Enable support for building the ibus setup UI"
|
|
build_options_default="ibus_setup"
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
build_options_default+=" dicts"
|
|
fi
|
|
|
|
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
|
|
vmove usr/share/gir-1.0
|
|
vmove usr/share/vala
|
|
}
|
|
}
|