blob: 6868b84ef1d45b21a40782f1de3c28e85d2ffae5 (
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
|
# Contributor: Hoang Nguyen <folliekazetani@protonmail.com>
# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
pkgname=popeye
pkgver=0.10.1
pkgrel=2
pkgdesc="Kubernetes cluster resource sanitizer"
url="https://popeyecli.io/"
arch="all"
license="Apache-2.0"
makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/derailed/popeye/archive/refs/tags/v$pkgver.tar.gz"
build() {
GOLDFLAGS="
-X github.com/derailed/popeye/cmd.version=v$pkgver
-X github.com/derailed/popeye/cmd.commit=AlpineLinux
-X github.com/derailed/popeye/cmd.date=$(date +%FT%T%Z)
"
go build -v -tags netgo -o bin/$pkgname -ldflags "$GOLDFLAGS"
}
check() {
go test ./...
}
package() {
install -Dm755 bin/$pkgname "$pkgdir"/usr/bin/$pkgname
}
sha512sums="
e0beaae8b6852b3925bbaea473b277c701be443267033e20b5ecbaa21066358d4dc4b0bb8078946c9ed778c472a7f625c77a5f328da51ce3300eb45da417c118 popeye-0.10.1.tar.gz
"
|