# Template file for 'contour'
pkgname=contour
version=0.4.3.6442
revision=3
build_style=cmake
build_helper="qemu"
configure_args="-DCONTOUR_QT_VERSION=6 -DCONTOUR_TESTING=OFF
 -DCRISPY_TESTING=OFF -DVTPARSER_TESTING=OFF -DLIBTERMINAL_TESTING=OFF"
hostmakedepends="pkg-config qt6-base qt6-tools"
makedepends="boxed-cpp fmt-devel guidelines-support-library freetype-devel
 harfbuzz-devel libssh2-devel libunicode-devel libutempter-devel range-v3 yaml-cpp-devel
 qt6-base-devel qt6-core qt6-declarative-devel qt6-gui qt6-multimedia-devel
 qt6-network qt6-opengl-widgets qt6-qt5compat-devel qt6-widgets"
depends="contour-shell-integration-${version}_${revision}
 contour-terminfo-${version}_${revision} qt6-qt5compat"
short_desc="Modern C++ Terminal Emulator"
maintainer="0x5c <dev@0x5c.io>"
license="Apache-2.0"
homepage="http://contour-terminal.org/"
distfiles="https://github.com/contour-terminal/contour/archive/refs/tags/v${version}.tar.gz"
checksum=859910a5330d9dcf628dfcb6f767807dbdaf187e550ac67966c1e8a713c1567e

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

contour-shell-integration_package() {
	short_desc+=" - shell integration scripts"
	pkg_install() {
		vmove usr/share/contour/shell-integration
	}
}
