diff options
author | Julien Nicoulaud | 2018-12-08 13:03:57 +0100 |
---|---|---|
committer | Julien Nicoulaud | 2018-12-08 13:03:57 +0100 |
commit | f1b89d10e3f1e4c7834e8728765d30d53ef63357 (patch) | |
tree | 8e7df6fc3f884c60c320d31b561ac9eb0e3931c1 | |
parent | 07a430b8363bb1aa6b9314efa8902466930a211c (diff) | |
download | aur-f1b89d10e3f1e4c7834e8728765d30d53ef63357.tar.gz |
follow wiki packaging guidelines for go (use go-pie and proper compilation flags)
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 8 |
2 files changed, 7 insertions, 5 deletions
@@ -1,11 +1,11 @@ pkgbase = concourse-fly pkgdesc = A command line interface that runs a build in a container with ATC. pkgver = 4.2.1 - pkgrel = 2 + pkgrel = 3 url = https://concourse-ci.org/fly.html arch = x86_64 license = Apache - makedepends = go + makedepends = go-pie provides = fly source = git+https://github.com/concourse/concourse.git#tag=v4.2.1 sha512sums = SKIP @@ -4,12 +4,12 @@ pkgname='concourse-fly' pkgver=4.2.1 -pkgrel=2 +pkgrel=3 pkgdesc="A command line interface that runs a build in a container with ATC." arch=(x86_64) url="https://concourse-ci.org/fly.html" license=('Apache') -makedepends=('go') +makedepends=('go-pie') source=("git+https://github.com/concourse/concourse.git#tag=v${pkgver}") sha512sums=('SKIP') provides=('fly') @@ -25,7 +25,9 @@ build() { cd "${srcdir}/concourse" export GOPATH="$PWD" cd src/github.com/concourse/fly - go build + go build -gcflags "all=-trimpath=${PWD}" \ + -asmflags "all=-trimpath=${PWD}" \ + -ldflags "-extldflags ${LDFLAGS}" } check() { |