27 lines
510 B
Python
27 lines
510 B
Python
from lib.make import *
|
|
from lib import go
|
|
|
|
|
|
version("2.11.9")
|
|
description("Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS")
|
|
maintainer("sisungo <[email protected]>")
|
|
source_managed("github://caddyserver/caddy#v2.11.9", "go")
|
|
|
|
builddep("shortcut/go")
|
|
|
|
|
|
def build():
|
|
go.build()
|
|
go.install(["./cmd/caddy"])
|
|
|
|
on_build(build)
|
|
|
|
|
|
def pack(composer):
|
|
composer.makedir("bin")
|
|
composer.add("caddy", "bin/caddy")
|
|
|
|
package("caddy")
|
|
dep("semi-libc @same-arch")
|
|
on_pack(pack)
|