jobcore/runit-rc/PKGBUILD

49 lines
1.5 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
_commit=18183a020fd9221be5e0117d3f2638200fe1ead9
# refs/remotes/origin/verbose2
pkgname=runit-rc
pkgver=20220408
pkgrel=01
pkgdesc='Artix Linux system initialization and shutdown for runit'
arch=(x86_64)
groups=(base)
url='https://gitea.artixlinux.org/artix/runit-rc'
backup=('etc/rc/rc.conf')
makedepends=('git')
depends=('procps-ng' 'bash' 'opentmpfiles' 'bootlogd' 'eudev')
provides=('init-rc')
conflicts=('init-rc')
source=("git+${url}.git#commit=$_commit"
rc.conf)
optdepends=('lvm2-runit: LVM support for runit'
'cryptsetup-runit: Enable boot support for encrypted partitions')
build() {
cd ${pkgname}
make
}
package() {
cd ${pkgname}
make DESTDIR="${pkgdir}" install-rc
install -D -m644 "${srcdir}/rc.conf" "${pkgdir}/etc/rc/rc.conf"
ln -s "/etc/rc/rc.conf" "${pkgdir}/etc/rc.conf"
### If you want cgroups mounted by the init remove the following line
### or # ln -s /usr/lib/rc/sv.d/cgroups /etc/rc/sysinit/04-cgroups
### and they will be mounted on next boot
rm -rf "${pkgdir}/etc/rc/sysinit/04-cgroups"
}
#---- license gpg-key sha256sums ----
license=('BSD')
sha256sums=(SKIP
9a3f33b93fc702ed1ec4d0200f7a78c1f178c798f12a1b37d308a1f3effe8a6e) # rc.conf