# Template file for 'leftwm'
pkgname=leftwm
version=0.2.11
revision=1
build_style=cargo
makedepends="libX11-devel libXinerama-devel libXrandr-devel xorg-server-devel"
depends="libX11 libXinerama xorg-server xrandr"
short_desc="Tiling window manager for Adventurers"
maintainer="Soc Virnyl S. Estela <socvirnyl.estela@gmail.com>"
license="MIT"
homepage="https://github.com/leftwm/leftwm"
distfiles="https://github.com/leftwm/leftwm/archive/${version}.tar.gz"
checksum=3a2bd59f12566d94b6be3b162c95d280acbaec1b40da415cb42fe07332a5b709

do_install() {
	vdoc README.md
	vlicense LICENSE.md
	# Example themes to use as references
	vmkdir usr/share/examples/leftwm/
	vcopy themes usr/share/examples/leftwm/
	# Add to xsession
	vinstall leftwm.desktop 644 usr/share/xsessions/
	# Installing corresponding binaries
	local _bin_path="${wrksrc}/target/${RUST_TARGET}/release"
	vbin ${_bin_path}/leftwm
	vbin ${_bin_path}/leftwm-check
	vbin ${_bin_path}/leftwm-worker
	vbin ${_bin_path}/leftwm-state
	vbin ${_bin_path}/leftwm-command
}
