void-packages/srcpkgs/leftwm/template

35 lines
1.2 KiB
Bash

# Template file for 'leftwm'
pkgname=leftwm
version=0.4.0
revision=1
build_style=cargo
configure_args="--no-default-features --features lefthk,sys-log"
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=af5999852975de453e19bd199bfc021519ca95e4016a97a1508dc4d678dddd8b
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
}