jobcore/runit-service-scripts/PKGBUILD
2024-06-12 03:31:47 +03:00

44 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 |---------------------------------------
# Contributor : Evhorizon <event.horizon@disroot.org>
pkgname=runit-service-scripts
pkgver=20240612
pkgrel=01
pkgdesc="A collection of services for runit"
groups=(base)
backup=("etc/runit/sv/" "etc/runit/runsvdir/default/")
makedepends=(bash git)
url="https://git.disroot.org/joborun/runit-service-scripts"
#source=($url/runit-sv8.tar.xz
#source=(git+"$url#commit=$_commit"
source=(git+$url
rss.install)
install=rss.install
package() {
cd $pkgname
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/$pkgname/usr/lib/runit/sv/* $pkgdir/usr/lib/runit/sv
msg 'Copying links to default network services /etc/runit/runsvdir/default ...'
cp -r $srcdir/$pkgname/etc/runit/runsvdir/default/* $pkgdir/etc/runit/runsvdir/default/
install -D -m644 $srcdir/$pkgname/"LICENSE" -t "${pkgdir}/usr/share/licenses/$pkgname/"
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=(GPL)
sha256sums=(SKIP # runit-service-scripts
3050f0484721a25d723cd0c50c4f4579d2d77b94965e28d734c19d3c4b9ec9ba) # rss.install
## 3d51194cd7e12b5535d6fc6ae8c91ff2536f0cad2b1fb5e689e6215ecb8117c4 runit-service-scripts-20240612-01-x86_64.pkg.tar.lz