void-packages/srcpkgs/superd/template

25 lines
745 B
Bash

# Template file for 'superd'
pkgname=superd
version=0.7
revision=1
build_style=go
go_import_path="sr.ht/~craftyguy/superd"
go_package="${go_import_path}/cmd/superd ${go_import_path}/cmd/superctl"
go_ldflags="-X 'main.Version=${version}'"
make_dirs="/etc/superd/services 0755 root root"
hostmakedepends="scdoc"
short_desc="Lightweight user service supervising daemon"
maintainer="Jami Kettunen <jami.kettunen@protonmail.com>"
license="GPL-3.0-or-later"
homepage="https://sr.ht/~craftyguy/superd/"
distfiles="https://git.sr.ht/~craftyguy/superd/archive/${version}.tar.gz"
checksum=7563647dd5303752237e1b8453c770dd83c908a239da73f48b11e2151109586b
do_check() {
go test ./...
}
post_install() {
make PREFIX=/usr DESTDIR=${DESTDIR} installmisc
}