summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b3a7b223dd7c7cfe1fdc62a9d4894ed2572a4339 (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
29
30
31
32
33
34
35
36
37
# Maintainer: Stefan Cocora <stefan dot cocora at gmail dot com>
# Contributor:

_pkgauthor=tsenart
_upstream_pkgname=vegeta
pkgname=vegeta-bin
pkgver=12.0.0
pkgrel=1
pkgdesc="Vegeta is a versatile HTTP load testing tool built out of a need to drill HTTP services with a constant request rate. It can be used both as a command line utility and a library."
arch=('x86_64')
_goos="linux"
_goarch="amd64"
groups=()
depends=()
makedepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
url="https://github.com/${_pkgauthor}/${_upstream_pkgname}"
license=("MIT")
# https://github.com/tsenart/vegeta/releases/download/v12.0.0/vegeta-linux-amd64.tar.gz
# https://github.com/tsenart/vegeta/releases/download/cli/v12.1.0/vegeta-12.1.0-linux-amd64.tar.gz
source=("${_upstream_pkgname}-${pkgver}-${_goos}-${_goarch}.tar.gz::https://github.com/${_pkgauthor}/${_upstream_pkgname}/releases/download/cli/v${pkgver}/${_upstream_pkgname}-${pkgver}-${_goos}-${_goarch}.tar.gz"
  "LICENSE::https://raw.githubusercontent.com/${_pkgauthor}/${_upstream_pkgname}/master/LICENSE")
sha256sums=(
  "05243352c79950764fc837cd3cd4f2fd87892fbfe24465c87c390bc04530bca5"
  "374db7067e9e238a74a5c3d25d9f17d5a6fb885e4b6392897ceffcabb274fd7c"
)

package() {

  install -Dm755 "${srcdir}/${_upstream_pkgname}" "${pkgdir}/usr/bin/${_upstream_pkgname}"
  install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${_upstream_pkgname}/LICENSE"
}