Merge remote-tracking branch 'aur/master'

This commit is contained in:
Sebastiaan de Schaetzen 2025-05-01 15:29:15 +02:00
commit 4e42c8eb61
3 changed files with 63 additions and 0 deletions

17
.SRCINFO Normal file
View File

@ -0,0 +1,17 @@
pkgbase = golangci-lint
pkgdesc = Fast linters runner for Go.
pkgver = 2.1.5
pkgrel = 1
url = https://golangci.com
arch = aarch64
arch = x86_64
license = GPL-3.0
makedepends = go
makedepends = git
conflicts = golangci-lint
provides = golangci-lint
source = https://github.com/golangci/golangci-lint/releases/download/v2.1.5/golangci-lint-2.1.5-source.tar.gz
sha256sums = ce1c278925456af76f487c726a395984966fc6cc2adcaaad469f6488b7c3fff6
pkgname = golangci-lint

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
*
!.gitignore
!PKGBUILD
!.SRCINFO

42
PKGBUILD Normal file
View File

@ -0,0 +1,42 @@
# This file was generated by GoReleaser. DO NOT EDIT.
# Maintainer: Fernandez Ludovic <lfernandez dot dev at gmail dot com>
pkgname='golangci-lint'
pkgver=2.1.5
pkgrel=1
pkgdesc='Fast linters runner for Go.'
url='https://golangci.com'
arch=('aarch64' 'x86_64')
license=('GPL-3.0')
provides=('golangci-lint')
conflicts=('golangci-lint')
makedepends=('go' 'git')
source=("${pkgname}_${pkgver}.tar.gz::https://github.com/golangci/golangci-lint/releases/download/v2.1.5/golangci-lint-2.1.5-source.tar.gz")
sha256sums=('ce1c278925456af76f487c726a395984966fc6cc2adcaaad469f6488b7c3fff6')
build() {
local _commit _flags
_commit=$(bsdcat "${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')"
-linkmode=external
)
export CGO_ENABLED=1
export CGO_CFLAGS="${CFLAGS}"
export CGO_CPPFLAGS="$CPPFLAGS"
export CGO_CXXFLAGS="$CXXFLAGS"
export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS='-buildmode=pie -trimpath -modcacherw'
go build -o "$pkgname" -ldflags="${_flags[*]}" ./cmd/"$pkgname"
./"$pkgname" completion bash > completion.bash
./"$pkgname" completion zsh > completion.zsh
./"$pkgname" completion fish > completion.fish
}
package() {
install -Dm755 "$pkgname" -t "$pkgdir"/usr/bin
install -Dm644 completion.bash "$pkgdir"/usr/share/bash-completion/completions/"$pkgname"
install -Dm644 completion.zsh "$pkgdir"/usr/share/zsh/site-functions/_"$pkgname"
install -Dm644 completion.fish "$pkgdir"/usr/share/fish/vendor_completions.d/"$pkgname".fish
}