29 lines
882 B
Bash
29 lines
882 B
Bash
# Template file for 'codeberg-cli'
|
|
pkgname=codeberg-cli
|
|
version=0.4.3
|
|
revision=1
|
|
build_style=cargo
|
|
build_helper=qemu
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libgit2-devel openssl-devel"
|
|
short_desc="CLI Tool for Codeberg similar to gh and glab"
|
|
maintainer="tranzystorekk <tranzystorek.io@protonmail.com>"
|
|
license="AGPL-3.0-or-later"
|
|
homepage="https://codeberg.org/Aviac/codeberg-cli"
|
|
changelog="https://codeberg.org/Aviac/codeberg-cli/raw/branch/main/CHANGELOG.md"
|
|
distfiles="https://codeberg.org/Aviac/codeberg-cli/archive/v${version}.tar.gz"
|
|
checksum=cf439a53846c93adf51bc0911da7489e59828b5be6ad0e50cecd4312e36c52b4
|
|
|
|
post_patch() {
|
|
cargo update --package git2@0.19.0 --precise 0.18.3
|
|
}
|
|
|
|
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
|
|
}
|