[arch-commits] Commit in staticcheck/trunk (PKGBUILD)
Date: Monday, December 14, 2020 @ 17:05:46 Author: foxboron Revision: 775750 upgpkg: staticcheck 2020.2-1 Modified: staticcheck/trunk/PKGBUILD --+ PKGBUILD |9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) Modified: PKGBUILD === --- PKGBUILD2020-12-14 16:29:09 UTC (rev 775749) +++ PKGBUILD2020-12-14 17:05:46 UTC (rev 775750) @@ -1,7 +1,7 @@ # Maintainer: Morten Linderud pkgname=staticcheck -pkgver=2020.1.6 +pkgver=2020.2 pkgrel=1 pkgdesc="The advanced Go linter" arch=('x86_64') @@ -9,15 +9,12 @@ license=("MIT") depends=('glibc') makedepends=('go' 'git') -source=("$pkgname-$pkgver.tar.gz::https://github.com/dominikh/go-tools/archive/$pkgver.tar.gz; - "fix-tests.patch::https://github.com/dominikh/go-tools/commit/542e8c572ba90537f28d6272df560105e64d5e9c.patch;) -md5sums=('af80714ca51ed1964901eb0ac94756a6' - '622467f6c704c75a132164b1fe0783f2') +source=("$pkgname-$pkgver.tar.gz::https://github.com/dominikh/go-tools/archive/$pkgver.tar.gz;) +sha256sums=('4e1658dd8f185f29568cd6bdc8943fe58cb7e6b7d62b4b69ef4bcecbc46d4253') prepare(){ cd "go-tools-$pkgver" mkdir -p bin - patch -Np1 < "$srcdir/fix-tests.patch" } build(){
[arch-commits] Commit in staticcheck/trunk (PKGBUILD)
Date: Tuesday, October 13, 2020 @ 17:51:31 Author: foxboron Revision: 723843 upgpkg: staticcheck 2020.1.6-1 Modified: staticcheck/trunk/PKGBUILD --+ PKGBUILD | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) Modified: PKGBUILD === --- PKGBUILD2020-10-13 17:36:59 UTC (rev 723842) +++ PKGBUILD2020-10-13 17:51:31 UTC (rev 723843) @@ -1,20 +1,23 @@ # Maintainer: Morten Linderud pkgname=staticcheck -pkgver=2020.1.5 +pkgver=2020.1.6 pkgrel=1 -pkgdesc="Staticcheck - The advanced Go linter" +pkgdesc="The advanced Go linter" arch=('x86_64') url="https://staticcheck.io; license=("MIT") depends=('glibc') makedepends=('go' 'git') -source=("$pkgname-$pkgver.tar.gz::https://github.com/dominikh/go-tools/archive/$pkgver.tar.gz;) -md5sums=('029ae003e14c1543f43db9539901c6bf') +source=("$pkgname-$pkgver.tar.gz::https://github.com/dominikh/go-tools/archive/$pkgver.tar.gz; + "fix-tests.patch::https://github.com/dominikh/go-tools/commit/542e8c572ba90537f28d6272df560105e64d5e9c.patch;) +md5sums=('af80714ca51ed1964901eb0ac94756a6' + '622467f6c704c75a132164b1fe0783f2') prepare(){ cd "go-tools-$pkgver" mkdir -p bin + patch -Np1 < "$srcdir/fix-tests.patch" } build(){ @@ -23,7 +26,7 @@ export CGO_CFLAGS="${CFLAGS}" export CGO_CPPFLAGS="${CPPFLAGS}" export CGO_CXXFLAGS="${CXXFLAGS}" - export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw" + export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw -ldflags=-linkmode=external" go build -o bin/staticcheck ./cmd/staticcheck }
[arch-commits] Commit in staticcheck/trunk (PKGBUILD)
Date: Friday, July 31, 2020 @ 19:00:56 Author: foxboron Revision: 666320 upgpkg: staticcheck 2020.1.5-1 Modified: staticcheck/trunk/PKGBUILD --+ PKGBUILD |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Modified: PKGBUILD === --- PKGBUILD2020-07-31 19:00:44 UTC (rev 666319) +++ PKGBUILD2020-07-31 19:00:56 UTC (rev 666320) @@ -1,7 +1,7 @@ # Maintainer: Morten Linderud pkgname=staticcheck -pkgver=2020.1.4 +pkgver=2020.1.5 pkgrel=1 pkgdesc="Staticcheck - The advanced Go linter" arch=('x86_64') @@ -10,7 +10,7 @@ depends=('glibc') makedepends=('go' 'git') source=("$pkgname-$pkgver.tar.gz::https://github.com/dominikh/go-tools/archive/$pkgver.tar.gz;) -md5sums=('c0d4c51c76384c682d6bc014bd26bf0d') +md5sums=('029ae003e14c1543f43db9539901c6bf') prepare(){ cd "go-tools-$pkgver"
[arch-commits] Commit in staticcheck/trunk (PKGBUILD)
Date: Friday, May 15, 2020 @ 22:08:18 Author: foxboron Revision: 628126 upgpkg: staticcheck 2020.1.4-1 Modified: staticcheck/trunk/PKGBUILD --+ PKGBUILD | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) Modified: PKGBUILD === --- PKGBUILD2020-05-15 21:55:18 UTC (rev 628125) +++ PKGBUILD2020-05-15 22:08:18 UTC (rev 628126) @@ -1,7 +1,7 @@ # Maintainer: Morten Linderud pkgname=staticcheck -pkgver=2020.1.3 +pkgver=2020.1.4 pkgrel=1 pkgdesc="Staticcheck - The advanced Go linter" arch=('x86_64') @@ -10,7 +10,7 @@ depends=('glibc') makedepends=('go' 'git') source=("$pkgname-$pkgver.tar.gz::https://github.com/dominikh/go-tools/archive/$pkgver.tar.gz;) -md5sums=('0032e437aa43b5dfe0c84f3e1bb9a266') +md5sums=('c0d4c51c76384c682d6bc014bd26bf0d') prepare(){ cd "go-tools-$pkgver" @@ -19,9 +19,11 @@ build(){ cd "go-tools-$pkgver" - export GOFLAGS="-buildmode=pie -trimpath" - export CGO_CFLAGS="$CFLAGS" - export CGO_LDFLAGS="$LDFLAGS" + export CGO_LDFLAGS="${LDFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw" go build -o bin/staticcheck ./cmd/staticcheck }
[arch-commits] Commit in staticcheck/trunk (PKGBUILD)
Date: Saturday, May 9, 2020 @ 17:32:53 Author: foxboron Revision: 626044 upgpkg: staticcheck 2020.1.3-1 Added: staticcheck/trunk/PKGBUILD --+ PKGBUILD | 38 ++ 1 file changed, 38 insertions(+) Added: PKGBUILD === --- PKGBUILD(rev 0) +++ PKGBUILD2020-05-09 17:32:53 UTC (rev 626044) @@ -0,0 +1,38 @@ +# Maintainer: Morten Linderud + +pkgname=staticcheck +pkgver=2020.1.3 +pkgrel=1 +pkgdesc="Staticcheck - The advanced Go linter" +arch=('x86_64') +url="https://staticcheck.io; +license=("MIT") +depends=('glibc') +makedepends=('go' 'git') +source=("$pkgname-$pkgver.tar.gz::https://github.com/dominikh/go-tools/archive/$pkgver.tar.gz;) +md5sums=('0032e437aa43b5dfe0c84f3e1bb9a266') + +prepare(){ + cd "go-tools-$pkgver" + mkdir -p bin +} + +build(){ + cd "go-tools-$pkgver" + export GOFLAGS="-buildmode=pie -trimpath" + export CGO_CFLAGS="$CFLAGS" + export CGO_LDFLAGS="$LDFLAGS" + go build -o bin/staticcheck ./cmd/staticcheck +} + +check(){ + cd "go-tools-$pkgver" + GOROOT="/usr/lib/go" go test -v ./... +} + +package(){ + cd "go-tools-$pkgver" + install -p -Dm755 bin/staticcheck "${pkgdir}/usr/bin/staticcheck" + install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENCE" + install -Dm644 "LICENSE-THIRD-PARTY" "${pkgdir}/usr/share/licenses/${pkgname}/LICENCE-THIRD-PARTY" +}