From 5180afa9a396f34a8b5570bda50dbc69222226bc Mon Sep 17 00:00:00 2001 From: Marcin Puc Date: Thu, 17 Nov 2022 15:29:58 +0100 Subject: [PATCH] vegeta: fix build, add version to package --- srcpkgs/vegeta/template | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/srcpkgs/vegeta/template b/srcpkgs/vegeta/template index cea720dafc67..1538d7d60b89 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() {