36 lines
1.1 KiB
Bash
36 lines
1.1 KiB
Bash
# Template file for 'soft-serve'
|
|
pkgname=soft-serve
|
|
version=0.7.4
|
|
revision=2
|
|
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
|
|
}
|