void-packages/srcpkgs/chroma/template
2021-04-25 20:16:49 -03:00

24 lines
667 B
Bash

# Template file for 'chroma'
pkgname=chroma
version=0.9.1
revision=1
build_style=go
go_import_path="github.com/alecthomas/${pkgname}"
go_package="${go_import_path}/cmd/chroma"
go_ldflags="-X main.version=${version} -X main.date=$(date +%Y.%m.%d)"
hostmakedepends="git"
short_desc="General purpose syntax highlighter"
maintainer="Daniel Lewan <vision360.daniel@gmail.com>"
license="MIT"
homepage="https://github.com/alecthomas/chroma"
distfiles="https://github.com/alecthomas/chroma/archive/v${version}.tar.gz"
checksum=@f351e7aa08f9632d37d8aa6358b362f2ea86447a69a6a9d82fb75e5c833d73dd
do_check() {
go test -v
}
post_install() {
vlicense COPYING
vdoc README.md
}