# Contributor: Stefan Reimer # Maintainer: Stefan Reimer pkgname=openvpn-auth-oauth2 pkgver=1.22.4 pkgrel=0 pkgdesc="OpenVPN management client that handles the single sign-on (SSO) authentication against various OIDC providers" url="https://github.com/jkroepke/openvpn-auth-oauth2" arch="x86_64 aarch64" license="MIT" depends="openvpn" makedepends="go bash make" options="!check chmod-clean" subpackages="$pkgname-openrc" source=" $pkgname-$pkgver.tar.gz::https://github.com/jkroepke/openvpn-auth-oauth2/archive/refs/tags/v$pkgver.tar.gz openvpn-auth-oauth2.initd " build() { make build } package() { install -Dm755 openvpn-auth-oauth2-$pkgver "$pkgdir"/usr/bin/openvpn-auth-oauth2 install -Dm644 packaging/etc/openvpn-auth-oauth2/config.yaml "$pkgdir"/etc/conf.d/openvpn-auth-oauth2.yaml install -Dm755 "$srcdir"/"$pkgname".initd "$pkgdir"/etc/init.d/$pkgname } sha512sums=" c5c8d85eab9859ac6e1c80a9a61b79236d64acf457053584d35beb40d4d56e6f4ad8b78a13d98bb6612b4f65371ac80cf0ce4216f18d3bc7b5b1dadc9425ced9 openvpn-auth-oauth2-1.22.4.tar.gz 6dcaa021d495c4e7ddb3501e9ce11a09d7c286a6eda579cff75a2c6b6e12794ec35069941d81ce411209212cab6d0707cc0a00e99327be13b10acb23b83c6f35 openvpn-auth-oauth2.initd "