#!/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=runit-service-scripts
pkgver=20220422
pkgrel=01
pkgdesc="A collection of services for runit - similar to Artix Linux"
arch=(x86_64)
group=(base)
backup=("etc/runit/sv/" "etc/runit/runsvdir/default/")
makedepends=(sh)
url="https://osdn.net/projects/joborun/storage"
source=($url/tarballs/runit-sv4.tar.xz)
install=rss.install

package() {
	depends=('runit' 'runit-rc')
	mkdir -p $pkgdir/usr/lib/runit/sv
	mkdir -p $pkgdir/etc/runit/runsvdir/default
	msg 'Copying services library to /usr/lib/runit/sv/ ...'
	cp -r $srcdir/usr/lib/runit/sv/* $pkgdir/usr/lib/runit/sv
	msg 'Copying links to default network services /etc/runit/runsvdir/default ...'
	cp -r $srcdir/etc/runit/runsvdir/default/* $pkgdir/etc/runit/runsvdir/default/
}

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

license=(GPL)

sha256sums=(7f5198a53e6bb0ae9e8777e777bd5f5b50ef9fa78732a377cd1ff390cf52d06d) # runit-sv4.tar.xz
