alpine-overlay/kubezero/openvpn_exporter/APKBUILD

25 lines
742 B
Plaintext

# Contributor: Stefan Reimer <stefan@zero-downtime.net>
# Maintainer: Stefan Reimer <stefan@zero-downtime.net>
pkgname=openvpn_exporter
pkgver=1.0
pkgrel=0
pkgdesc="OpenVPN Prometheus Exporter"
url="https://github.com/moneff/openvpn_exporter"
arch="x86_64 aarch64"
license="AGPL-3.0"
makedepends="go bash"
options="!check chmod-clean"
source="$pkgname-$pkgver.tar.gz::"$url"/archive/refs/tags/"$pkgver".tar.gz"
build() {
go build -ldflags "-s -w" -o build/openvpn_exporter
}
package() {
install -Dm755 build/openvpn_exporter "$pkgdir"/usr/bin/openvpn_exporter
}
sha512sums="
78c0153745ed81327ae5bdcf051b477cc2bf65fe9582cde0ffc3fcb4a20863115b2de3418797234a21a155e6dee86e19d49a1b8fe1161a02c924a8f29ac5fdb8 openvpn_exporter-1.0.tar.gz
"