summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-05-27 12:09:15 +0200
committerErich Eckner <git@eckner.net>2020-05-27 12:09:15 +0200
commit45163b1668a7704ccde3c9a2f66558b6c193a1d9 (patch)
tree712f614fef94f513fe32eec9ba5e0860f8441497
parentb889ede885e1c6d18b72f7aa3042aad5d7941d04 (diff)
downloadarchlinuxewe.git.save-45163b1668a7704ccde3c9a2f66558b6c193a1d9.tar.xz
golangci-lint removed
-rw-r--r--golangci-lint/PKGBUILD42
1 files changed, 0 insertions, 42 deletions
diff --git a/golangci-lint/PKGBUILD b/golangci-lint/PKGBUILD
deleted file mode 100644
index 4f233617..00000000
--- a/golangci-lint/PKGBUILD
+++ /dev/null
@@ -1,42 +0,0 @@
-# Maintainer: Erich Eckner <arch at eckner dot net>
-# Contributor: Matthias Lisin <ml@visu.li>
-pkgname=golangci-lint
-pkgdesc="Linters Runner for Go. 5x faster than gometalinter."
-pkgver=1.27.0
-pkgrel=1
-arch=('x86_64' 'pentium4' 'i686' 'i486' 'aarch64' 'armv7h' 'armv6h')
-url='https://github.com/golangci/golangci-lint'
-license=('GPL3')
-depends=('glibc')
-makedepends=('git' 'go' 'gzip')
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/golangci/golangci-lint/archive/v${pkgver}.tar.gz")
-sha256sums=('11a23b60416cab57a7d83c97d723212ec3c430c4d9fdfc698e5f5276cd5ac15a')
-
-prepare() {
- cd "${pkgname}-${pkgver}"
- go mod download
-}
-
-build() {
- local _commit _flags
- _commit=$(zcat "${pkgname}-${pkgver}.tar.gz" | git get-tar-commit-id)
- _flags=(
- -X=main.version=$pkgver
- -X=main.commit=${_commit::7}
- -X=main.date=$(date -u -d "@${SOURCE_DATE_EPOCH}" +'%FT%TZ')
- )
- export CGO_CFLAGS="${CFLAGS}"
- export CGO_CPPFLAGS="$CPPFLAGS"
- export CGO_CXXFLAGS="$CXXFLAGS"
- export CGO_LDFLAGS="${LDFLAGS}"
- export GOFLAGS='-buildmode=pie -trimpath -modcacherw -mod=readonly'
- cd "${pkgname}-${pkgver}"
- go build -o "$pkgname" -ldflags="${_flags[*]}" ./cmd/"$pkgname"
-}
-
-package() {
- cd "${pkgname}-${pkgver}"
- install -Dm755 "$pkgname" -t "$pkgdir"/usr/bin
- ./"$pkgname" completion bash | install -Dm644 /dev/stdin "$pkgdir"/usr/share/bash-completion/completions/golangci-lint
- ./"$pkgname" completion zsh | install -Dm644 /dev/stdin "$pkgdir"/usr/share/zsh/site-functions/_golangci-lint
-}