24 lines
642 B
Bash
24 lines
642 B
Bash
# Template file for 'chroma'
|
|
pkgname=chroma
|
|
version=2.12.0
|
|
revision=1
|
|
build_wrksrc="cmd/chroma"
|
|
build_style=go
|
|
go_import_path="github.com/alecthomas/chroma/v2/cmd/chroma"
|
|
go_ldflags="-X main.version=${version} -X main.date=$(date +%Y.%m.%d)"
|
|
short_desc="General purpose syntax highlighter"
|
|
maintainer="Daniel Lewan <daniel@teddydd.me>"
|
|
license="MIT"
|
|
homepage="https://github.com/alecthomas/chroma"
|
|
distfiles="https://github.com/alecthomas/chroma/archive/v${version}.tar.gz"
|
|
checksum=56c546a834113493de95585d5034c3c58d42b4518787cff5450601f9d9d0e78d
|
|
|
|
do_check() {
|
|
go test -v
|
|
}
|
|
|
|
post_install() {
|
|
vlicense ../../COPYING
|
|
vdoc ../../README.md
|
|
}
|