diff options
author | Matthias Lisin | 2019-05-04 22:37:01 +0200 |
---|---|---|
committer | Matthias Lisin | 2019-05-04 22:37:01 +0200 |
commit | 3f7d586c58648f0f630ade5d93814b4d0adca840 (patch) | |
tree | f6d3e3827ecd01a0483dab38b9b656f43500e4c3 /PKGBUILD | |
parent | 88fa7c06771b4552ea5ae9788a84d141191df455 (diff) | |
download | aur-3f7d586c58648f0f630ade5d93814b4d0adca840.tar.gz |
updpkg: golangci-lint 1.16.0-3
Make reproducible! (hopefully)
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 14 |
1 files changed, 4 insertions, 10 deletions
@@ -3,7 +3,7 @@ pkgname=golangci-lint pkgdesc="Linters Runner for Go. 5x faster than gometalinter." pkgver=1.16.0 _commit=97ea1cb # short commit has of release -pkgrel=2 +pkgrel=3 arch=('any') url='https://github.com/golangci/golangci-lint' license=('GPL3') @@ -13,22 +13,16 @@ conflicts=('golangci-lint' 'golangci-lint-git') source=("https://github.com/golangci/golangci-lint/archive/v${pkgver}.tar.gz") sha512sums=('1b0c63ca31c93761d24071cac8eb27278075230f9f93026d9b38e106069f9ecc5618621372ef4a4a886ef3791b50d953fd7c9889e7443960bff18a1d72cfcda9') -prepare() { - cd "${pkgname}-${pkgver}" - export GOPATH="$srcdir/gopath" - go get -} - build() { cd "${pkgname}-${pkgver}" - export GOPATH="$srcdir/gopath" + export GOPATH="$srcdir" # ISO-8601, like the official binary _date=$(date -u -Iseconds -d "@${SOURCE_DATE_EPOCH}" | sed 's/+00:00/Z/') LDFLAGS+=" -X 'main.version=${pkgver}'" LDFLAGS+=" -X 'main.commit=${_commit}'" LDFLAGS+=" -X 'main.date=${_date}'" - go build -gcflags "all=-trimpath=${PWD}" \ - -asmflags "all=-trimpath=${PWD}" \ + go build -gcflags "all=-trimpath=${GOPATH}" \ + -asmflags "all=-trimpath=${GOPATH}" \ -ldflags "-extldflags=${LDFLAGS}" \ -o "$pkgname" ./cmd/"$pkgname" } |