23 lines
664 B
Bash
23 lines
664 B
Bash
# Template file for 'glow'
|
|
pkgname=glow
|
|
version=1.5.1
|
|
revision=2
|
|
build_style=go
|
|
go_import_path=github.com/charmbracelet/glow
|
|
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=b4ecf269b7c6447e19591b1d23f398ef2b38a6a75be68458390b42d3efc44b92
|
|
|
|
post_install() {
|
|
for shell in bash fish zsh; do
|
|
CGO_ENABLED=0 GOARCH= go run . completion ${shell} > glow.${shell}
|
|
vcompletion glow.${shell} ${shell}
|
|
done
|
|
|
|
vlicense LICENSE
|
|
}
|