New package: soft-serve-0.7.4

This commit is contained in:
zenobit 2023-09-17 22:39:10 +02:00 committed by classabbyamp
parent 5f67f92065
commit 41dea62dc8
2 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,7 @@
#!/bin/sh
exec 2>&1
export HOME=/var/lib/soft-serve
export SOFT_SERVE_DATA_PATH="${HOME}"
exec chpst -u _softserve:_softserve soft serve

View File

@ -0,0 +1,35 @@
# Template file for 'soft-serve'
pkgname=soft-serve
version=0.7.4
revision=1
build_style=go
build_helper=qemu
go_import_path="github.com/charmbracelet/soft-serve"
go_ldflags="-X main.Version=${version}"
go_package="github.com/charmbracelet/soft-serve/cmd/soft"
depends="git"
short_desc="Tasty, self-hostable Git server for the command line"
maintainer="zenobit <zenobit@disroot.org>"
license="MIT"
homepage="https://github.com/charmbracelet/soft-serve"
changelog="https://github.com/charmbracelet/soft-serve/releases"
distfiles="https://github.com/charmbracelet/soft-serve/archive/refs/tags/v${version}.tar.gz"
checksum=56ba8a51446afa3b53d451a86f0fdbef0a4ce90d5072a0ef9359e3150c466d50
system_accounts="_softserve"
_softserve_homedir="/var/lib/soft-serve"
make_dirs="/var/lib/soft-serve 0755 _softserve _softserve"
post_install() {
local _soft="${DESTDIR}/usr/bin/soft"
for shell in bash fish zsh; do
vtargetrun ${_soft} completion ${shell} > soft.${shell}
vcompletion soft.${shell} ${shell} soft
done
vtargetrun ${_soft} man > soft.1
vman soft.1
vlicense LICENSE
vsv soft-serve
}