diff options
author | Alice Gaudon | 2020-08-06 13:41:30 +0200 |
---|---|---|
committer | GitHub | 2020-08-06 13:41:30 +0200 |
commit | ea78ccb4348520f2056df5e1d19baaccee79ff1c (patch) | |
tree | 1de80c1938e71201e9b405ea98e2f7c34c67995c | |
parent | c36305fa0334ac9a7cf82aeb3474131fdb1610c1 (diff) | |
parent | 59b41a07ab2c4ea12ea540b87d56d9d630cf5bd4 (diff) | |
download | aur-ea78ccb4348520f2056df5e1d19baaccee79ff1c.tar.gz |
Merge pull request #5 from ArisuOngaku/xcaddy
Build with version information
-rw-r--r-- | PKGBUILD | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -46,6 +46,14 @@ pkgver() { prepare() { sed 's|/var/www/html|/srv/http|g' -i "${srcdir}/index-${_distcommit}.html" sed 's|/etc/caddy/Caddyfile|/etc/caddy/caddy.conf|g' -i "${srcdir}/index-${_distcommit}.html" + + # Build instructions as per https://github.com/caddyserver/caddy#with-version-information-andor-plugins + cd "${_pkgname}/cmd/caddy/" + if ! test -f go.mod; then + go mod init caddy + fi + go get github.com/caddyserver/caddy/v2@${_tag} # Pin version + go mod tidy # Update go.sum } build() { |