void-packages/srcpkgs/zellij/template

38 lines
1.2 KiB
Bash

# Template file for 'zellij'
pkgname=zellij
version=0.30.0
revision=1
# Dependency crate `wasmer-vm` only supports the following archs: x86_64, arm64, x86
# https://docs.wasmer.io/ecosystem/wasmer/wasmer-features#compiler-support-by-chipset
archs="x86_64* aarch64* i686*"
build_style=cargo
build_helper=qemu
hostmakedepends="mandown"
checkdepends="openssl-devel pkg-config"
short_desc="Terminal workspace with batteries included"
maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
license="MIT"
homepage="https://zellij.dev"
changelog="https://github.com/zellij-org/zellij/blob/main/CHANGELOG.md"
distfiles="https://github.com/zellij-org/zellij/archive/v${version}.tar.gz"
checksum=52253271dd954e2705571a9bf2b2f7873fe47e0e5b7a2e85aac1b1c73152914c
post_build() {
ZELLIJ="target/${RUST_TARGET}/release/zellij"
vtargetrun ${ZELLIJ} setup --generate-completion bash > zellij.bash
vtargetrun ${ZELLIJ} setup --generate-completion zsh > zellij.zsh
vtargetrun ${ZELLIJ} setup --generate-completion fish > zellij.fish
mandown docs/MANPAGE.md > zellij.1
}
post_install() {
vcompletion zellij.bash bash
vcompletion zellij.zsh zsh
vcompletion zellij.fish fish
vlicense LICENSE.md
vdoc README.md
vman zellij.1
}