aboutsummaryrefslogtreecommitdiff
path: root/srcpkgs/zellij/template
blob: 4cccb374076fee63a3ca0536c79f61449458c2a4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Template file for 'zellij'
pkgname=zellij
version=0.40.1
revision=2
# Wasmer runtime only supports the following archs: x86_64, arm64
# https://docs.wasmer.io/runtime/features#backend-support-by-chipset
# https://github.com/wasmerio/wasmer/issues/4244#issuecomment-1751365804
archs="x86_64* aarch64*"
build_style=cargo
build_helper=qemu
hostmakedepends="mandown pkg-config"
makedepends="libcurl-devel"
checkdepends="libssh2-devel"
short_desc="Terminal workspace with batteries included"
maintainer="tranzystorekk <tranzystorek.io@protonmail.com>"
license="MIT"
homepage="https://zellij.dev"
changelog="https://raw.githubusercontent.com/zellij-org/zellij/main/CHANGELOG.md"
distfiles="https://github.com/zellij-org/zellij/archive/refs/tags/v${version}.tar.gz"
checksum=1f0bfa13f2dbe657d76341a196f98a3b4caa47ac63abee06b39883a11ca220a8
make_check_pre="env LIBSSH2_SYS_USE_PKG_CONFIG=1"

post_install() {
	vdoc README.md
	vinstall assets/zellij.desktop 644 usr/share/applications
	vlicense LICENSE.md

	for shell in bash fish zsh; do
		vtargetrun "${DESTDIR}/usr/bin/zellij" setup --generate-completion ${shell} > zellij.${shell}
		vcompletion zellij.${shell} ${shell}
	done

	mandown docs/MANPAGE.md > zellij.1
	vman zellij.1
}