diff --git a/v3.15/openvpn_exporter/APKBUILD b/v3.15/openvpn_exporter/APKBUILD new file mode 100644 index 0000000..5e2e20b --- /dev/null +++ b/v3.15/openvpn_exporter/APKBUILD @@ -0,0 +1,24 @@ +# Contributor: Stefan Reimer +# Maintainer: Stefan Reimer +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 +"