[arch-commits] Commit in staticcheck/repos/community-x86_64 (PKGBUILD PKGBUILD)
Morten Linderud
foxboron at archlinux.org
Thu May 27 22:30:54 UTC 2021
Date: Thursday, May 27, 2021 @ 22:30:54
Author: foxboron
Revision: 949217
archrelease: copy trunk to community-x86_64
Added:
staticcheck/repos/community-x86_64/PKGBUILD
(from rev 949216, staticcheck/trunk/PKGBUILD)
Deleted:
staticcheck/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 80 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 40 insertions(+), 40 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-05-27 22:30:46 UTC (rev 949216)
+++ PKGBUILD 2021-05-27 22:30:54 UTC (rev 949217)
@@ -1,40 +0,0 @@
-# Maintainer: Morten Linderud <foxboron at archlinux.org>
-
-pkgname=staticcheck
-pkgver=2020.2.4
-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=('a13362c6cce037d18ff2ad092725aa1f3563f3c1f05fbc6749e08050dbec742e')
-
-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 949216, staticcheck/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-05-27 22:30:54 UTC (rev 949217)
@@ -0,0 +1,40 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+
+pkgname=staticcheck
+pkgver=2021.1
+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=('f06e3edca75bb9d1deb5b3dfa7c4bfd0eb85afa1098702131d291a25362966fb')
+
+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"
+}
More information about the arch-commits
mailing list