mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
New package: soft-serve-0.7.4
This commit is contained in:
parent
5f67f92065
commit
41dea62dc8
2 changed files with 42 additions and 0 deletions
7
srcpkgs/soft-serve/files/soft-serve/run
Normal file
7
srcpkgs/soft-serve/files/soft-serve/run
Normal 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
|
35
srcpkgs/soft-serve/template
Normal file
35
srcpkgs/soft-serve/template
Normal 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
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue