blob: c9dded132e8536b80deedc1645ee94bd6a99ab2c (
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
38
|
# Contributor: Marvin Preuss <marvin@xsteadfastx.org>
# Maintainer: Marvin Preuss <marvin@xsteadfastx.org>
pkgname=ali
pkgver=0.7.5
# this is used for the help command to print the commit.
# needs to be changed on every release.
_rev=c0aa677
pkgrel=0
pkgdesc="Generate HTTP load and plot the results in real-time"
url="https://github.com/nakabonne/ali"
arch="all"
license="MIT"
options="chmod-clean"
makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/nakabonne/ali/archive/refs/tags/v$pkgver.tar.gz"
export GOPATH="$srcdir"
export GOFLAGS="$GOFLAGS -modcacherw"
build() {
go build \
-ldflags "
-X \"main.version=$pkgver\" \
-X \"main.date=$(date -u "+%Y-%m-%dT%TZ" ${SOURCE_DATE_EPOCH:+-d @$SOURCE_DATE_EPOCH})\" \
-X \"main.commit=$_rev\" \
"
}
check() {
go test ./...
}
package() {
install -Dm755 $pkgname "$pkgdir"/usr/bin/"$pkgname"
}
sha512sums="
6ae745556bec663abcb2a8d6c5e090fdd5e6b5a8bb889f85c528f749de79eb0e33d794265a801983f8de81629e19a1a38fe147e5095108310b1a353766866ff3 ali-0.7.5.tar.gz
"
|