void-packages/srcpkgs/xurls/template

23 lines
537 B
Bash

# Template file for 'xurls'
pkgname=xurls
version=2.0.0
revision=1
build_style=go
go_import_path="github.com/mvdan/${pkgname}"
go_package="${go_import_path}/cmd/${pkgname}"
hostmakedepends="git"
short_desc="Extract urls from text"
maintainer="dleeram <dleeram@protonmail.com>"
license="BSD-3-Clause"
homepage="https://www.github.com/mvdan/xurls"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=515f05122890daab367bdff142f9c605475e81e3089d9aff080bc31bf0ddaf7b
do_check() {
go test -v
}
post_install() {
vlicense LICENSE
}