void-packages/srcpkgs/leftwm/template

35 lines
1.2 KiB
Bash

# Template file for 'leftwm'
pkgname=leftwm
version=0.5.3
revision=1
build_style=cargo
configure_args="--no-default-features --features lefthk,sys-log,x11rb,xlib"
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"
changelog="https://raw.githubusercontent.com/leftwm/leftwm/main/CHANGELOG"
distfiles="https://github.com/leftwm/leftwm/archive/refs/tags/${version}.tar.gz"
checksum=b0576a18bd73b6a4372b8eba08c04da432a8643ebca15ee46340a77ba31b1bfc
do_install() {
vdoc README.md
vlicense LICENSE.md
vman leftwm/doc/leftwm.1
# 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}/lefthk-worker
vbin ${_bin_path}/leftwm
vbin ${_bin_path}/leftwm-check
vbin ${_bin_path}/leftwm-worker
vbin ${_bin_path}/leftwm-state
vbin ${_bin_path}/leftwm-command
}