void-packages/srcpkgs/sheldon/template

31 lines
996 B
Bash

# Template file for 'sheldon'
pkgname=sheldon
version=0.7.4
revision=2
build_style=cargo
build_helper=qemu
hostmakedepends="pkg-config"
makedepends="libcurl-devel libgit2-devel openssl-devel zlib-devel"
checkdepends="git"
short_desc="Fast, configurable shell plugin manager"
maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
license="Apache-2.0, MIT"
homepage="https://sheldon.cli.rs/"
changelog="https://raw.githubusercontent.com/rossmacarthur/sheldon/trunk/RELEASES.md"
distfiles="https://github.com/rossmacarthur/sheldon/archive/refs/tags/${version}.tar.gz"
checksum=5d8ecd432a99852d416580174be7ab8f29fe9231d9804f0cc26ba2b158f49cdf
if [ "$XBPS_BUILD_ENVIRONMENT" == "void-packages-ci" ]; then
make_check_args="-- --skip lock_and_source_clean_permission_denied"
fi
post_install() {
for shell in bash zsh; do
vtargetrun ${DESTDIR}/usr/bin/sheldon completions --shell ${shell} > sheldon.${shell}
vcompletion sheldon.${shell} ${shell}
done
vlicense LICENSE-MIT
vdoc README.md
}