summaryrefslogtreecommitdiff
path: root/app-benchmarks/vegeta/vegeta-12.12.0.ebuild
blob: 8228c19d34a93523c872e49051480a292572630b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Copyright 2022-2026 Liguros Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8

inherit go-module

DESCRIPTION="HTTP load testing tool and library written in GoLang."
HOMEPAGE="https://github.com/tsenart/vegeta"
SRC_URI="
	https://github.com/tsenart/vegeta/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
	https://codeberg.org/bluebottle/liguros-distfiles/raw/branch/main/${P}-deps.tar.xz
"

LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 x86 arm"

src_compile() {
	CGO_ENABLED=0 go build -v -a -tags=netgo -ldflags '-s -w -extldflags "-static"'
}

src_install() {
	# Install binary
	dobin ${PN}

	# Install docs
	einstalldocs
}