# Template file for 'foot'
pkgname=foot
version=1.27.0
revision=1
build_style=meson
hostmakedepends="pkg-config scdoc wayland-devel"
makedepends="fcft-devel libutf8proc-devel libxkbcommon-devel ncurses-devel tllist
 wayland-devel wayland-protocols"
depends="${pkgname}-terminfo>=${version}_${revision} libutempter virtual?font:monospace"
short_desc="Fast, lightweight and minimalistic Wayland terminal emulator"
maintainer="Andrew J. Hesford <ajh@sideband.org>"
license="MIT"
homepage="https://codeberg.org/dnkl/foot"
changelog="https://codeberg.org/dnkl/foot/raw/branch/master/CHANGELOG.md"
distfiles="https://codeberg.org/dnkl/foot/archive/${version}.tar.gz"
checksum=4e6131cc859ec6a36569f1978cf3617cc3836a681d13d228ded1b4885dab7770
conf_files="/etc/xdg/foot/foot.ini"

post_install() {
	rm -f ${DESTDIR}/usr/share/doc/foot/LICENSE
	vlicense LICENSE
}

foot-terminfo_package() {
	short_desc+=" - terminfo data"
	pkg_install() {
		vmove usr/share/terminfo
	}
}
