# Contributor: guddaff # Maintainer: guddaff pkgname=zellij pkgver=0.37.2 pkgrel=0 pkgdesc="Terminal multiplexer" url="https://zellij.dev/" license="MIT" # armv7, armhf: warning: inline asm clobber list contains reserved registers: D16, D17, D18, D19, D20, D21, D22, D23, D24, D25, D26, D27, D28, D29, D30, D31 # x86: error[E0425]: cannot find value `REG_EIP` in crate `libc` # s390x, ppc64le : corosensei-0.1.3 unsupported target arch="all !armhf !armv7 !ppc64le !s390x !x86" makedepends=" cargo cargo-auditable mandown openssl-dev>3 " subpackages=" $pkgname-doc $pkgname-bash-completion $pkgname-fish-completion $pkgname-zsh-completion " source="https://github.com/zellij-org/zellij/archive/v$pkgver/zellij-$pkgver.tar.gz" options="!check" # troublesome prepare() { default_prepare cargo fetch --target="$CTARGET" --locked } build() { cargo auditable build --frozen --release mandown docs/MANPAGE.md > target/$pkgname.1 mkdir -p target/completions for sh in bash fish zsh; do target/release/$pkgname setup --generate-completion $sh \ > target/completions/$pkgname.$sh done } package() { install -D -m755 target/release/$pkgname -t "$pkgdir"/usr/bin/ install -D -m644 target/$pkgname.1 -t "$pkgdir"/usr/share/man/man1/ install -D -m644 target/completions/$pkgname.bash \ "$pkgdir"/usr/share/bash-completion/completions/$pkgname install -D -m644 target/completions/$pkgname.fish \ "$pkgdir"/usr/share/fish/vendor_completions.d/$pkgname.fish install -D -m644 target/completions/$pkgname.zsh \ "$pkgdir"/usr/share/zsh/site-functions/_$pkgname } sha512sums=" 6fd36a95573f439b1469a16622b04b12ff253479b981d3e3903ac8e59f795c842fddf6c8a49863020e9371bcdf30428c723c4a8fea2b012a9d00f1ce99219958 zellij-0.37.2.tar.gz "