# Template file for 'i3'
pkgname=i3
version=4.23
revision=1
build_style=meson
hostmakedepends="pkg-config perl"
makedepends="pcre2-devel yajl-devel libxcb-devel libev-devel
 pango-devel startup-notification-devel libxkbcommon-devel
 xcb-util-keysyms-devel xcb-util-wm-devel xcb-util-cursor-devel
 xcb-util-xrm-devel"
conf_files="/etc/i3/config /etc/i3/config.keycodes"
short_desc="Improved tiling window manager"
maintainer="Rodrigo Oliveira <mdkcore@qtrnn.io>"
license="BSD-3-Clause"
homepage="https://i3wm.org/"
changelog="https://i3wm.org/downloads/RELEASE-NOTES-${version}.txt"
distfiles="https://i3wm.org/downloads/i3-${version}.tar.xz"
checksum=61026a7196c9139d0f3aadd27197e8b320c576e3a450e01d74c1aca484044c46
make_check=no # Michael disables tests in Debian rules, too

post_install() {
	vlicense LICENSE
}

i3-devel_package() {
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
	}
}

i3-gaps_package() {
	build_style=meta
	short_desc+=" - transitional dummy package"
	depends="${sourcepkg}>=${version}_${revision}"
}
