diff --git a/srcpkgs/vegeta/template b/srcpkgs/vegeta/template index cea720dafc6..1538d7d60b8 100644 --- a/srcpkgs/vegeta/template +++ b/srcpkgs/vegeta/template @@ -1,14 +1,15 @@ # Template file for 'vegeta' pkgname=vegeta version=12.8.4 -revision=1 +revision=2 build_style=go -go_import_path=github.com/tsenart/$pkgname +go_import_path="github.com/tsenart/vegeta/v${version%%.*}" +go_ldflags="-X main.Version=${version}" short_desc="HTTP load testing tool" maintainer="Frank Steinborn " license="MIT" homepage="https://github.com/tsenart/vegeta" -distfiles="https://$go_import_path/archive/v$version.tar.gz" +distfiles="https://github.com/tsenart/vegeta/archive/refs/tags/v${version}.tar.gz" checksum=418249d07f04da0a587df45abe34705166de9e54a836e27e387c719ebab3e357 post_install() {