27 lines
741 B
Bash
27 lines
741 B
Bash
# Template file for 'Gokapi'
|
|
pkgname=Gokapi
|
|
version=1.8.0
|
|
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=d13d954267e3317af8d1192bd330a78cb60da276da18b6d7ef6d1b552b0a14b0
|
|
system_accounts="_gokapi"
|
|
_gokapi_homedir="/var/lib/gokapi"
|
|
make_dirs="/var/lib/gokapi 700 _gokapi _gokapi"
|
|
|
|
pre_build() {
|
|
env -i GOPATH="${GOPATH}" GOCACHE="${GOCACHE}" GOPROXY="${GOPROXY}" \
|
|
go generate ./...
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE.md
|
|
vsv gokapi
|
|
}
|