void-packages/srcpkgs/Gokapi/template

26 lines
677 B
Bash

# Template file for 'Gokapi'
pkgname=Gokapi
version=1.6.2
revision=1
build_style=go
go_import_path=github.com/forceu/gokapi
go_package="${go_import_path}/cmd/gokapi"
short_desc="Lightweight, self-hosted Firefox Send alternative"
maintainer="Andrew J. Hesford <ajh@sideband.org>"
license="AGPL-3.0-only"
homepage="https://github.com/Forceu/Gokapi"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=39fe942808fd5d86722bd37f293b3276085b1751b0aeffa214a6052404fc4429
system_accounts="_gokapi"
_gokapi_homedir="/var/lib/gokapi"
make_dirs="/var/lib/gokapi 700 _gokapi _gokapi"
pre_build() {
GOARCH= go generate ./...
}
post_install() {
vlicense LICENSE.md
vsv gokapi
}