# Maintainer: Chris Cromer <chris@cromer.cl>
# Maintainer: Muhammad Herdiansyah <koni@artixlinux.org>

_commit=4be15079e20c2a48ed1215d5e54a4c10abb9b7fa

pkgname=runit-rc
pkgver=20200825
pkgrel=1
pkgdesc='Artix Linux system initialization and shutdown for runit'
arch=('x86_64')
url='https://gitea.artixlinux.org/artix/runit-rc'
license=('BSD')
backup=('etc/rc/rc.conf')
makedepends=('git')
depends=('procps-ng' 'bash' 'opentmpfiles' 'bootlogd' 'eudev-runit')
provides=('init-rc')
conflicts=('init-rc')
source=("git+${url}.git#commit=$_commit")
sha256sums=('SKIP')
optdepends=('lvm2-runit: LVM support for runit'
            'cryptsetup-runit: Enable boot support for encrypted partitions')

build() {
	cd ${pkgname} #-${pkgver}
	make
}

package() {
	cd ${pkgname} #-${pkgver}
	make DESTDIR="${pkgdir}" install-rc
}
