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

pkgname=rpcbind-openrc
pkgver=20210505
pkgrel=1
pkgdesc="OpenRC rpcbind init script"
arch=('any')
url="https://gitea.artixlinux.org/artixlinux/packages-openrc"
license=('GPL2')
groups=('openrc-system')
provides=('init-rpcbind')
conflicts=('init-rpcbind')
backup=('etc/conf.d/rpcbind')
source=("rpcbind.confd"
        "rpcbind.initd")
sha256sums=('cfe28557f14afc1b93537c5c41abdd12d8142a8f08eafaa0bc6b3ba02dc2aed0'
            '58df0feb6ed546873d2d0a962fa859e94cfab0cfd5e9cb7e7ba5cdda8742a1a7')

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