Date: Thursday, February 16, 2023 @ 22:22:05
Author: foxboron
Revision: 1400906
archrelease: copy trunk to community-x86_64
Added:
staticcheck/repos/community-x86_64/PKGBUILD
(from rev 1400905, staticcheck/trunk/PKGBUILD)
Deleted:
staticcheck/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 104 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 52 insertions(+), 52 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-02-16 22:21:58 UTC (rev 1400905)
+++ PKGBUILD 2023-02-16 22:22:05 UTC (rev 1400906)
@@ -1,52 +0,0 @@
-# Maintainer: Morten Linderud <[email protected]>
-
-pkgname=staticcheck
-pkgver=2023.1
-pkgrel=1
-pkgdesc="The advanced Go linter"
-arch=('x86_64')
-url="https://staticcheck.io"
-license=("MIT")
-depends=('glibc')
-makedepends=('go' 'git')
-options=('!lto')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/dominikh/go-tools/archive/$pkgver.tar.gz")
-sha512sums=('ebf8711fbd9208d88974e666304b4506de121b5beeca92a2be5731e85080c82e1dc24f7c7ef28a0ecba2fa7e059ff774f87dd9e7a15d3f85309503b7e84acd44')
-b2sums=('f89aa9a2790db737da1b1a24dc0ba5bc82df4c202e562bb45844484b6c8e67c9d3056f3005119a59befffb2806be1f888552e4a9b556df1a6a9e7548a9d2aa6f')
-
-prepare(){
- cd "go-tools-$pkgver"
- mkdir -p bin
-}
-
-build(){
- cd "go-tools-$pkgver"
-
- # set Go flags
- export CGO_CPPFLAGS="${CPPFLAGS}"
- export CGO_CFLAGS="${CFLAGS}"
- export CGO_CXXFLAGS="${CXXFLAGS}"
- export GOPATH="${srcdir}"
-
- go build -v \
- -buildmode=pie \
- -mod=readonly \
- -modcacherw \
- -ldflags "-compressdwarf=false \
- -linkmode external \
- -extldflags ${LDFLAGS}" \
- -o bin\
- ./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 1400905,
staticcheck/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-02-16 22:22:05 UTC (rev 1400906)
@@ -0,0 +1,52 @@
+# Maintainer: Morten Linderud <[email protected]>
+
+pkgname=staticcheck
+pkgver=2023.1.2
+pkgrel=1
+pkgdesc="The advanced Go linter"
+arch=('x86_64')
+url="https://staticcheck.io"
+license=("MIT")
+depends=('glibc')
+makedepends=('go' 'git')
+options=('!lto')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/dominikh/go-tools/archive/$pkgver.tar.gz")
+sha512sums=('83252aa41f822ecca61c5cd9a433407ebffd9a5b9a07a5f21694386386a8bfa2826d933bdd190310a8c9aec9b6ca02c64ee540f0bd1a00a04fb0ccdf0f9bca76')
+b2sums=('dd3a358315ec195920a387478ace55d0f8077bb36537556aade230e0752d368d7ad1ef5bcf5d63c1fa89bd5bf415f493deb6316cc507b85c44979d152f2e0aa4')
+
+prepare(){
+ cd "go-tools-$pkgver"
+ mkdir -p bin
+}
+
+build(){
+ cd "go-tools-$pkgver"
+
+ # set Go flags
+ export CGO_CPPFLAGS="${CPPFLAGS}"
+ export CGO_CFLAGS="${CFLAGS}"
+ export CGO_CXXFLAGS="${CXXFLAGS}"
+ export GOPATH="${srcdir}"
+
+ go build -v \
+ -buildmode=pie \
+ -mod=readonly \
+ -modcacherw \
+ -ldflags "-compressdwarf=false \
+ -linkmode external \
+ -extldflags ${LDFLAGS}" \
+ -o bin\
+ ./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"
+}