# Template file for 'ferium'
pkgname=ferium
version=4.7.0
revision=1
build_style=cargo
build_helper=qemu
configure_args="--no-default-features"
short_desc="CLI program for managing Minecraft mods and modpacks"
maintainer="yosh <yosh-git@riseup.net>"
license="MPL-2.0"
homepage="https://github.com/gorilla-devs/ferium"
changelog="https://raw.githubusercontent.com/gorilla-devs/ferium/main/CHANGELOG.md"
distfiles="https://github.com/gorilla-devs/ferium/archive/refs/tags/v${version}.tar.gz"
checksum=a7804e44d1949e3fe2c5e875d7d70fc6d2ecd16cbcb65619b9ad4f61ac3b1887
# tests rely on the github API, which randomly ratelimits unauthed conns
# to perform tests locally, export GITHUB_TOKEN in pre_check
make_check=ci-skip

post_install() {
	local ferium="${DESTDIR}/usr/bin/ferium"
	for shell in bash fish zsh; do
		vtargetrun ${ferium} complete ${shell} > ferium.${shell}
		vcompletion ferium.${shell} ${shell}
	done
}
