aports/testing/warp-s3/APKBUILD
2025-04-11 19:40:50 +02:00

34 lines
882 B
Text

maintainer="Michał Polański <michal@polanski.me>"
pkgname=warp-s3
pkgver=1.1.1
pkgrel=1
pkgdesc="Benchmarking tool for S3"
url="https://github.com/minio/warp"
license="AGPL-3.0"
arch="all !armhf !armv7 !x86" # tests fail on 32-bit architectures
makedepends="go"
options="net"
source="https://github.com/minio/warp/archive/v$pkgver/warp-s3-$pkgver.tar.gz"
builddir="$srcdir/warp-$pkgver"
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
build() {
go build \
-ldflags "-X github.com/minio/warp/pkg.Version=$pkgver" \
-o warp-s3
}
check() {
go test ./...
}
package() {
install -Dm755 $pkgname -t "$pkgdir"/usr/bin/
}
sha512sums="
442dc56c93a6b44828834cc72b8d995407ea21f4777d301a34bfc68ec23d624bcee04d885ad889af26636c263a8557236fa714d2cca2be1acbe5d89a36fb7a3a warp-s3-1.1.1.tar.gz
"