# Template file for 'glow'
pkgname=glow
version=3.0.0
revision=1
build_style=go
go_import_path=charm.land/glow/v3
go_ldflags="-X main.Version=${version}"
short_desc="Render markdown on the CLI, with pizzazz"
maintainer="klardotsh <josh@klar.sh>"
license="MIT"
homepage="https://github.com/charmbracelet/glow"
distfiles="https://github.com/charmbracelet/glow/archive/refs/tags/v${version}.tar.gz"
checksum=18df6f3c09157021366b8c702b5badba405d37dbb42f132353eb50c1b0d3f464

post_install() {
	for shell in bash fish zsh; do
		CGO_ENABLED=0 GOARCH= go run . completion ${shell} > glow.${shell}
		vcompletion glow.${shell} ${shell}
	done

	CGO_ENABLED=0 GOARCH= go run . man > glow.1
	vman glow.1

	vlicense LICENSE
}
