#!/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 |---------------------------------------

pkgname=jobo66
pkgdesc="installs minimal s6 & 66 needed software equivalent to the runit setup on joborun to boot w/ s6/66"
pkgver=0.1.0
pkgrel=05
arch=('x86_64')
source=(jobo66.txt jobo66.install)
makedepends=(glibc sh)
groups=('s6-suite' 'jobo66')
backup=('etc/66/jobo66.txt')
conflicts=(opensysusers)
optdepends=('lvm2-66serv: lvm service'
	'openntpd-66serv: an alternative to ntp'
	'dhcpcd-66serv: works well with wpa_supplicant'
	'dbus-66serv: if you really need the damn thing running - includes a user dbus script as well'
	'ntpclient-66serv: a very small but effective ntp service by Skarnet')

package() {
  depends=(skalibs execline s6 s6-dns s6-linux-utils s6-networking s6-portable-utils s6-rc 
	oblibs 66 66-tools boot-66serv boot@-66serv ntpd-66serv dhclient-66serv 
	wpa_supplicant-66serv tty@-66serv joborun66 obsysusers opentmpfiles)

  install -Dm 0644 $srcdir/jobo66.txt $pkgdir/etc/66/jobo66.txt
  mkdir -p $pkgdir/usr/bin
  ln -s /usr/bin/obsysusers $pkgdir/usr/bin/sysusers
}

install=jobo66.install

# See the observice repository (pkg -Sl observice) for all the Obarun service files available
# See also additional or more minimalistic and runit like services for 66 from mobinmob
# https://codeberg.org/mobinmob/66-voidlinux  and https://osdn.net/projects/avyssos/ 

#---- license gpg-key sha256sums ----

license=('ISC')

sha256sums=(39c75848713bb50f782844bb790dc2ec76b104fe15c2e272ee622a559319220e # jobo66.txt
	fae7c6c145659ced8ec296332518e4ad5d0f420c1f74bc220929fbc9cb644818) # jobo66.install
