# Maintainer: David P. <megver83@parabola.nu>
# Maintainer (Artix): artoo <artoo@artixlinux.org>

pkgname=openvpn-openrc
pkgver=20210505
pkgrel=3
pkgdesc="OpenRC openvpn init script"
arch=('any')
url="https://gitea.artixlinux.org/artixlinux/packages-openrc"
license=('GPL2')
groups=('openrc-world')
provides=('init-openvpn')
conflicts=('init-openvpn')
backup=('etc/conf.d/openvpn')
source=("openvpn".{confd,initd})
sha256sums=('330149a83684ddabe413d134d4c8efad4c88b18c2ab67165014deff5f7fffad2'
            '63c437caea0d9568270592e449e2555d0db6e3c5d114189def61a17b49968144')

package() {
    depends=('openrc' 'openvpn')
    install -Dm755 "${srcdir}"/openvpn.initd "${pkgdir}"/etc/init.d/openvpn
    install -Dm644 "${srcdir}"/openvpn.confd "${pkgdir}"/etc/conf.d/openvpn
}
