# Maintainer: David P. <megver83@parabola.nu>
# Maintainer (Artix): artoo <artoo@artixlinux.org>
# Contributor (Artix): Oscar Campos <damnwidget@artixlinux.org>
# Contributor (Artix): Rafli Akmal <rafliakmaltejakusuma@gmail.com>

pkgname=docker-openrc
pkgver=20230512
pkgrel=1
pkgdesc="OpenRC docker init script"
arch=('any')
url="https://gitea.artixlinux.org/packagesD/docker-openrc"
license=('GPL2')
groups=('openrc-galaxy')
provides=('init-docker')
conflicts=('init-docker')
backup=('etc/conf.d/docker')
source=("docker.confd"
        "docker.initd")
sha256sums=('3f661c0032dda93d448f138308b1d70b35ef9297bc43816891bbcd1ab5d7cc5e'
            'eb0bd10b3a010ab05589927a2449d4944f4a02cceb19e3d6d4909d80fbf712ec')

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