Updated with go package guidelines
This commit is contained in:
parent
f64794a1c9
commit
7c6a72bedc
14
PKGBUILD
14
PKGBUILD
@ -9,13 +9,13 @@ pkgname=caddy
|
|||||||
pkgver=1.0.5
|
pkgver=1.0.5
|
||||||
_gitcommit=11ae1aa6b88e45b077dd97cb816fe06cd91cca67
|
_gitcommit=11ae1aa6b88e45b077dd97cb816fe06cd91cca67
|
||||||
_distcommit=9e93bfd85c97d71ab842a4a4b555d358295c914e
|
_distcommit=9e93bfd85c97d71ab842a4a4b555d358295c914e
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc='HTTP/2 Web Server with Automatic HTTPS'
|
pkgdesc='HTTP/2 Web Server with Automatic HTTPS'
|
||||||
url='https://caddyserver.com'
|
url='https://caddyserver.com'
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
license=('Apache')
|
license=('Apache')
|
||||||
depends=('glibc')
|
depends=('glibc')
|
||||||
makedepends=('go-pie' 'git')
|
makedepends=('go' 'git')
|
||||||
backup=('etc/caddy/caddy.conf')
|
backup=('etc/caddy/caddy.conf')
|
||||||
source=("git+https://github.com/caddyserver/caddy#commit=${_gitcommit}?signed"
|
source=("git+https://github.com/caddyserver/caddy#commit=${_gitcommit}?signed"
|
||||||
caddy-${_distcommit}-index.html::https://raw.githubusercontent.com/caddyserver/dist/${_distcommit}/welcome/index.html
|
caddy-${_distcommit}-index.html::https://raw.githubusercontent.com/caddyserver/dist/${_distcommit}/welcome/index.html
|
||||||
@ -65,10 +65,12 @@ EOF
|
|||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd ${pkgname}/caddy
|
cd ${pkgname}/caddy
|
||||||
go build -v \
|
export CGO_CPPFLAGS="${CPPFLAGS}"
|
||||||
-trimpath \
|
export CGO_CFLAGS="${CFLAGS}"
|
||||||
-ldflags "-extldflags ${LDFLAGS}" \
|
export CGO_CXXFLAGS="${CXXFLAGS}"
|
||||||
.
|
export CGO_LDFLAGS="${LDFLAGS}"
|
||||||
|
export GOFLAGS="-buildmode=pie -trimpath -modcacherw"
|
||||||
|
go build -v .
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user