vegeta: fix build, add version to package

This commit is contained in:
Marcin Puc 2022-11-17 15:29:58 +01:00 committed by Đoàn Trần Công Danh
parent df6b059993
commit 23efefbe95

View file

@ -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 <steinex@nognu.de>"
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() {