# Template file for 'scc'
pkgname=scc
version=3.7.0
revision=1
build_style=go
build_helper=qemu
go_import_path="github.com/boyter/scc/v3"
short_desc="Fast cloc replacement written in pure Go"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://github.com/boyter/scc"
distfiles="https://github.com/boyter/scc/archive/v${version}.tar.gz"
checksum=447233f70ebcc24f1dafb27b093afdd17d3a1d662de96e8226130c5308b02d01
conflicts="sc-controller" # /usr/bin/scc

post_install() {
	vlicense LICENSE
	for shell in bash fish zsh; do
		vtargetrun "$DESTDIR"/usr/bin/scc completion $shell > scc.$shell
		vcompletion scc.$shell $shell
	done
}
