# Maintainer (artix): artoo <artoo@artixlinux.org>
# Maintainer: bill-auger <bill-auger@programmer.net>


pkgname=pcsclite-openrc
pkgver=20190128
pkgrel=2
pkgdesc="OpenRC pcsclite init script"
arch=('any')
url="https://gitea.artixlinux.org/artixlinux/packages-openrc/src/branch/master/pcsclite-openrc/repos/community-any"
license=('GPL2')
depends=('openrc' 'pcsclite')
conflicts=('systemd-sysvcompat')
source=("pcscd.initd" "pcscd.confd")
sha256sums=('be7210e7ebb17bee2da9a22082323fa87f3d76da71e6957b9205f3a04af4be20'
            '75c38f3d60fc6506d6bccdefeace24143cae2786b5665770ec69aed3140407d4')


_inst_initd(){
    install -Dm755 ${srcdir}/$1.initd ${pkgdir}/etc/init.d/$1
}

_inst_confd(){
    install -Dm755 ${srcdir}/$1.confd ${pkgdir}/etc/conf.d/$1
}

package() {
    _inst_initd 'pcscd'
    _inst_confd 'pcscd'
}
