# Maintainer: Amin Vakil pkgname=pumba pkgver=0.10.1 pkgrel=1 pkgdesc="Chaos testing, network emulation and stress testing tool for containers" arch=('x86_64') url="https://github.com/alexei-led/pumba" license=('Apache') makedepends=('go' 'git') checkdepends=('golangci-lint') source=("${pkgname}-${pkgver}-${pkgrel}.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz") sha256sums=('bcf3c97da8f61febcf6d239e57d156c8593e76fdd28bd39dd7f2efe19148b8b2') build() { cd "$pkgname-$pkgver" export CGO_CPPFLAGS="${CPPFLAGS}" export CGO_CFLAGS="${CFLAGS}" export CGO_CXXFLAGS="${CXXFLAGS}" export CGO_LDFLAGS="${LDFLAGS}" export GOFLAGS="-trimpath -ldflags=-linkmode=external -modcacherw" make } test() { cd "$pkgname-$pkgver" make test-coverage } package() { cd "$pkgname-$pkgver" make release install -Dm755 .bin/github.com/alexei-led/${pkgname}_linux_amd64 "$pkgdir"/usr/bin/$pkgname }