summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 625967e224c5fa889217b320ca9b7fbd00793e3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# This file was generated by GoReleaser. DO NOT EDIT.
# Maintainer: Fernandez Ludovic <lfernandez dot dev at gmail dot com>

pkgname='golangci-lint-bin'
pkgver=1.62.2
pkgrel=2
pkgdesc='Fast linters runner for Go.'
url='https://golangci.com'
arch=('aarch64' 'armv7h' 'i686' 'x86_64')
license=('GPL-3.0')
provides=('golangci-lint')
conflicts=('golangci-lint')

source_aarch64=("${pkgname}_${pkgver}_aarch64.tar.gz::https://github.com/golangci/golangci-lint/releases/download/v1.62.2/golangci-lint-1.62.2-linux-arm64.tar.gz")
sha256sums_aarch64=('10b6f5bd8483bd9e85a82f6119ed08f95609f42b86dc344b5dc15703c74d5b85')

source_armv7h=("${pkgname}_${pkgver}_armv7h.tar.gz::https://github.com/golangci/golangci-lint/releases/download/v1.62.2/golangci-lint-1.62.2-linux-armv7.tar.gz")
sha256sums_armv7h=('f245dbabb1637f979b4333b4ada268cf78b2ca5934f82c9dec2fda84956fdd87')

source_i686=("${pkgname}_${pkgver}_i686.tar.gz::https://github.com/golangci/golangci-lint/releases/download/v1.62.2/golangci-lint-1.62.2-linux-386.tar.gz")
sha256sums_i686=('90decb83cf24ee22f36a54261b3efdea34245129fbb14f6007805efc04cb550a')

source_x86_64=("${pkgname}_${pkgver}_x86_64.tar.gz::https://github.com/golangci/golangci-lint/releases/download/v1.62.2/golangci-lint-1.62.2-linux-amd64.tar.gz")
sha256sums_x86_64=('5101292b7925a6a14b49c5c3d845c5021399698ffd2f41bcfab8a111b5669939')

package() {
  local x86_64=amd64 i686=386 aarch64=arm64 armv6h=armv6 armv7h=armv7
  cd "golangci-lint-${pkgver}-linux-${!CARCH}"

  # bin
  install -Dm755 "./golangci-lint" "${pkgdir}/usr/bin/golangci-lint"

  # license
  install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/golangci-lint/LICENSE"

  # completions
  mkdir -p "${pkgdir}/usr/share/bash-completion/completions/"
  mkdir -p "${pkgdir}/usr/share/zsh/site-functions/"
  mkdir -p "${pkgdir}/usr/share/fish/vendor_completions.d/"
  ./golangci-lint completion bash | install -Dm644 /dev/stdin "${pkgdir}/usr/share/bash-completion/completions/golangci-lint"
  ./golangci-lint completion zsh | install -Dm644 /dev/stdin "${pkgdir}/usr/share/zsh/site-functions/_golangci-lint"
  ./golangci-lint completion fish | install -Dm644 /dev/stdin "${pkgdir}/usr/share/fish/vendor_completions.d/golangci-lint.fish"
}