mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-16 14:17:02 +02:00
caddy: build for go1.20
This commit is contained in:
parent
c359aaaa46
commit
9b4a220966
1 changed files with 3 additions and 5 deletions
|
@ -1,10 +1,11 @@
|
|||
# Template file for 'caddy'
|
||||
pkgname=caddy
|
||||
version=2.6.4
|
||||
revision=3
|
||||
revision=4
|
||||
build_style=go
|
||||
go_import_path=github.com/caddyserver/caddy/v2
|
||||
go_package="${go_import_path}/cmd/caddy"
|
||||
hostmakedepends="go1.20"
|
||||
depends="shared-mime-info"
|
||||
short_desc="Fast, cross-platform HTTP/2 web server with automatic HTTPS"
|
||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||
|
@ -19,6 +20,7 @@ caddy_homedir="/var/lib/caddy"
|
|||
caddy_descr="caddy daemon"
|
||||
|
||||
conf_files="/etc/caddy/Caddyfile"
|
||||
export GOTOOLCHAIN=go1.20
|
||||
|
||||
make_dirs="
|
||||
/etc/caddy 0700 caddy caddy
|
||||
|
@ -30,10 +32,6 @@ post_patch() {
|
|||
vsed -e "s,unknown,${version},g" -i ${wrksrc}/caddy.go
|
||||
}
|
||||
|
||||
pre_build() {
|
||||
export GOTOOLCHAIN="go1.20.7"
|
||||
}
|
||||
|
||||
post_install() {
|
||||
vsv caddy
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue