Date: Wednesday, March 10, 2021 @ 22:10:25 Author: foxboron Revision: 887251
archrelease: copy trunk to community-x86_64 Added: staticcheck/repos/community-x86_64/PKGBUILD (from rev 887250, staticcheck/trunk/PKGBUILD) Deleted: staticcheck/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 80 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 40 insertions(+), 40 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2021-03-10 22:10:16 UTC (rev 887250) +++ PKGBUILD 2021-03-10 22:10:25 UTC (rev 887251) @@ -1,40 +0,0 @@ -# Maintainer: Morten Linderud <foxbo...@archlinux.org> - -pkgname=staticcheck -pkgver=2020.2.2 -pkgrel=2 -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") -sha256sums=('6f68bc529f730cf2e79e4430c690f8ba24d596c5d63a5b0557dec463306efbfa') - -prepare(){ - cd "go-tools-$pkgver" - mkdir -p bin -} - -build(){ - cd "go-tools-$pkgver" - export CGO_LDFLAGS="${LDFLAGS}" - export CGO_CFLAGS="${CFLAGS}" - export CGO_CPPFLAGS="${CPPFLAGS}" - export CGO_CXXFLAGS="${CXXFLAGS}" - export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw -ldflags=-linkmode=external" - 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" -} Copied: staticcheck/repos/community-x86_64/PKGBUILD (from rev 887250, staticcheck/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2021-03-10 22:10:25 UTC (rev 887251) @@ -0,0 +1,40 @@ +# Maintainer: Morten Linderud <foxbo...@archlinux.org> + +pkgname=staticcheck +pkgver=2020.2.3 +pkgrel=1 +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") +sha256sums=('dbd109c8a75ca65dcc077b9799b2e49b1c9607a69f55b063243f2ed9e05cc723') + +prepare(){ + cd "go-tools-$pkgver" + mkdir -p bin +} + +build(){ + cd "go-tools-$pkgver" + export CGO_LDFLAGS="${LDFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw -ldflags=-linkmode=external" + 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" +}