alpine-overlay/kubezero/openvpn_exporter/APKBUILD

25 lines
792 B
Plaintext
Raw Normal View History

2022-06-20 11:04:42 +00:00
# Contributor: Stefan Reimer <stefan@zero-downtime.net>
# Maintainer: Stefan Reimer <stefan@zero-downtime.net>
pkgname=openvpn_exporter
pkgver=0.3.1
pkgrel=0
pkgdesc="OpenVPN Prometheus Exporter"
url="https://github.com/StuartApp/openvpn_exporter.git"
arch="x86_64 aarch64"
license="AGPL-3.0"
makedepends="go bash"
options="!check chmod-clean"
source="$pkgname-$pkgver.tar.gz::https://github.com/StuartApp/openvpn_exporter/archive/refs/tags/v"$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="
4133003120b3a76a46cc146c26e7418bf7e2db3c16ce3f621b28a3fa06516373388fd469d48f499526baa3f6b36cb8887a835f2833e6f315cdf18502949d2bb1 openvpn_exporter-0.3.1.tar.gz
"