# Template file for 'bismuth'
pkgname=bismuth
version=3.1.4
revision=1
build_style=cmake
configure_args="-DUSE_TSC=OFF"
hostmakedepends="cmake ninja extra-cmake-modules nodejs"
makedepends="qt5-declarative-devel qt5-svg-devel kconfig-devel
 kconfigwidgets-devel kcoreaddons-devel kdeclarative-devel kglobalaccel-devel
 kcmutils-devel ki18n-devel gettext-devel kdecoration-devel"
checkdepends="AppStream"
short_desc="Tile KDE Plasma windows automatically and manage via keyboard"
maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
license="MIT"
homepage="https://bismuth-forge.github.io/bismuth/"
distfiles="https://github.com/Bismuth-Forge/bismuth/archive/refs/tags/v${version}.tar.gz"
checksum=216d8f5a6c649e4950989b2d7e100fe23832311328b970b8e32985c1ef25b0b5

if [ "$XBPS_CROSS_BUILD" ]; then
	hostmakedepends+=" qt5-qmake qt5-host-tools kcoreaddons kpackage kconfig"
	configure_args+=" -DBUILD_TESTING=OFF"
fi

if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
	broken="npm WARN exec The following package was not found and will be installed: esbuild"
fi

post_install() {
	vlicense LICENSE
}
