void-packages/srcpkgs/codeberg-cli/template

25 lines
800 B
Bash

# Template file for 'codeberg-cli'
pkgname=codeberg-cli
version=0.3.5
revision=2
build_style=cargo
build_helper=qemu
hostmakedepends="pkg-config"
makedepends="openssl-devel"
short_desc="CLI Tool for Codeberg similar to gh and glab"
maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
license="AGPL-3.0-or-later"
homepage="https://codeberg.org/RobWalt/codeberg-cli"
changelog="https://codeberg.org/RobWalt/codeberg-cli/raw/branch/main/CHANGELOG.md"
distfiles="https://codeberg.org/RobWalt/codeberg-cli/archive/v${version}.tar.gz"
checksum=bd705df34588fcf668fab8f2c77127679a83335d8ce5248950365fb599d35d29
post_install() {
vlicense LICENSE
for shell in bash fish zsh; do
vtargetrun ${DESTDIR}/usr/bin/berg completion ${shell} > berg.${shell}
vcompletion berg.${shell} ${shell} berg
done
}