upgpkg: vacuum 0.10.1-1

upstream release
This commit is contained in:
ml- 2024-06-22 18:40:15 +02:00
parent 57a5a3bc98
commit d2c8b6889e
2 changed files with 26 additions and 26 deletions

View file

@ -1,6 +1,6 @@
pkgbase = vacuum
pkgdesc = fast, lightweight OpenAPI linter and quality checking tool
pkgver = 0.10.0
pkgver = 0.10.1
pkgrel = 1
url = https://quobix.com/vacuum/
arch = aarch64
@ -10,7 +10,7 @@ pkgbase = vacuum
makedepends = git
makedepends = go
depends = glibc
source = https://github.com/daveshanley/vacuum/archive/refs/tags/v0.10.0/vacuum-0.10.0.tar.gz
sha256sums = 7b950d2a7ee324eb1f3edf3fe27d8e7f6a750e427e7aef99617e1c2ee47570ba
source = https://github.com/daveshanley/vacuum/archive/refs/tags/v0.10.1/vacuum-0.10.1.tar.gz
sha256sums = 4d692072e04d03cafa0560e64ffb9c517c4295e955f9c2788fd586512b0a7bc1
pkgname = vacuum

View file

@ -1,6 +1,6 @@
# Maintainer: ml <ml-aur@ransomware.download>
pkgname=vacuum
pkgver=0.10.0
pkgver=0.10.1
pkgrel=1
pkgdesc='fast, lightweight OpenAPI linter and quality checking tool'
arch=('aarch64' 'i686' 'x86_64')
@ -9,36 +9,36 @@ license=('MIT')
depends=('glibc')
makedepends=('git' 'go')
source=("https://github.com/daveshanley/vacuum/archive/refs/tags/v$pkgver/$pkgname-$pkgver.tar.gz")
sha256sums=('7b950d2a7ee324eb1f3edf3fe27d8e7f6a750e427e7aef99617e1c2ee47570ba')
sha256sums=('4d692072e04d03cafa0560e64ffb9c517c4295e955f9c2788fd586512b0a7bc1')
build() {
_commit=$(bsdcat "$pkgname"-"$pkgver".tar.gz | git get-tar-commit-id)
cd "$pkgname-$pkgver"
export CGO_ENABLED=1
export CGO_LDFLAGS=$LDFLAGS
export CGO_CFLAGS=$CFLAGS
export CGO_CPPFLAGS=$CPPFLAGS
export CGO_CXXFLAGS=$CXXFLAGS
export GOFLAGS='-buildmode=pie -trimpath -modcacherw'
TZ=UTC printf -v _date '%(%FT%TZ)T' "$SOURCE_DATE_EPOCH"
go build -ldflags "-linkmode=external \
_commit=$(bsdcat "$pkgname"-"$pkgver".tar.gz | git get-tar-commit-id)
cd "$pkgname-$pkgver"
export CGO_ENABLED=1
export CGO_LDFLAGS=$LDFLAGS
export CGO_CFLAGS=$CFLAGS
export CGO_CPPFLAGS=$CPPFLAGS
export CGO_CXXFLAGS=$CXXFLAGS
export GOFLAGS='-buildmode=pie -trimpath -modcacherw'
TZ=UTC printf -v _date '%(%FT%TZ)T' "$SOURCE_DATE_EPOCH"
go build -ldflags "-linkmode=external \
-X main.version=$pkgver -X main.commit=$_commit -X 'main.date=$_date'"
./"$pkgname" completion bash >completion.bash
./"$pkgname" completion fish >completion.fish
./"$pkgname" completion zsh >completion.zsh
./"$pkgname" completion bash >completion.bash
./"$pkgname" completion fish >completion.fish
./"$pkgname" completion zsh >completion.zsh
}
check() {
cd "$pkgname-$pkgver"
go test -ldflags "-linkmode=external" ./...
cd "$pkgname-$pkgver"
go test -ldflags "-linkmode=external" ./...
}
package() {
cd "$pkgname-$pkgver"
install -Dm755 "$pkgname" -t "$pkgdir"/usr/bin
install -Dm644 completion.bash "$pkgdir"/usr/share/bash-completion/completions/"$pkgname"
install -Dm644 completion.fish "$pkgdir"/usr/share/fish/vendor_completions.d/"$pkgname".fish
install -Dm644 completion.zsh "$pkgdir"/usr/share/zsh/site-functions/_"$pkgname"
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/"$pkgname"
cd "$pkgname-$pkgver"
install -Dm755 "$pkgname" -t "$pkgdir"/usr/bin
install -Dm644 completion.bash "$pkgdir"/usr/share/bash-completion/completions/"$pkgname"
install -Dm644 completion.fish "$pkgdir"/usr/share/fish/vendor_completions.d/"$pkgname".fish
install -Dm644 completion.zsh "$pkgdir"/usr/share/zsh/site-functions/_"$pkgname"
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/"$pkgname"
}