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

pkgname=elogind-openrc
pkgver=20210704
pkgrel=1
pkgdesc="OpenRC elogind init script"
arch=('any')
url="https://gitea.artixlinux.org/packagesE/elogind-openrc"
license=('GPL2')
provides=('init-logind' 'init-elogind')
conflicts=('init-logind' 'init-elogind')
source=(#"elogind.confd"
        "elogind.sv.initd")
sha256sums=('b4097e85f81f37d8529eb57563813e94b7c7afb9931d892907d805093187761b')

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

    install -d "${pkgdir}"/etc/runlevels/boot
    ln -sf /etc/init.d/elogind "${pkgdir}"/etc/runlevels/boot/elogind
}
