# Template file for 'tau'
pkgname=tau
version=0.12.0
revision=2
build_style=meson
build_helper="rust"
hostmakedepends="cargo gettext pkg-config glib-devel"
makedepends="libhandy-devel rust-std vte3-devel oniguruma-devel"
depends="xi-editor"
checkdepends="appstream-glib desktop-file-utils"
short_desc="GTK frontend for the Xi text editor, written in Rust"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="MIT"
homepage="https://gitlab.gnome.org/World/Tau"
distfiles="https://gitlab.gnome.org/World/Tau/uploads/14037a7f98f475d2497b74bd74a0430e/tau-${version}.tar.xz"
checksum=a14e4c3511fa51cc051c33ad04a3989b93c6aa2405e8b0f5ac05970fe5d95449

# this sometimes builds and sometimes doesn't, do not
# reenable unless you can reliably build it every time
case $XBPS_MACHINE in
	*-musl) broken="crashes rustc" ;;
esac

post_install() {
	vlicense LICENSE
}

gxi_package() {
	depends="tau>=${version}_${revision}"
	build_style=meta
	short_desc+=" (transitional dummy package)"
}
