upgpkg: vacuum 0.18.5-2

This commit is contained in:
ml- 2025-10-14 18:53:18 +02:00
parent 8e00272ea8
commit 0ad03c3487
2 changed files with 15 additions and 13 deletions

View file

@ -1,7 +1,7 @@
pkgbase = vacuum
pkgdesc = fast, lightweight OpenAPI linter and quality checking tool
pkgver = 0.18.5
pkgrel = 1
pkgrel = 2
url = https://quobix.com/vacuum/
arch = aarch64
arch = i686
@ -10,7 +10,7 @@ pkgbase = vacuum
makedepends = git
makedepends = go
depends = glibc
source = https://github.com/daveshanley/vacuum/archive/refs/tags/v0.18.5/vacuum-0.18.5.tar.gz
sha256sums = 3b4e7a34d0fe0633493901be9a89cf2cf79723c8642f4201050bb636fe75cc83
source = git+https://github.com/daveshanley/vacuum.git#tag=v0.18.5
sha256sums = b6229ec27dafdbac748e6567f42aee3303b5f0bbfe5b38b1f8bccba11ded8982
pkgname = vacuum

View file

@ -1,28 +1,30 @@
# Maintainer: ml <ml-aur@ransomware.download>
pkgname=vacuum
pkgver=0.18.5
pkgrel=1
pkgrel=2
pkgdesc='fast, lightweight OpenAPI linter and quality checking tool'
arch=('aarch64' 'i686' 'x86_64')
url=https://quobix.com/vacuum/
license=('MIT')
depends=('glibc')
makedepends=('git' 'go')
source=("https://github.com/daveshanley/vacuum/archive/refs/tags/v$pkgver/$pkgname-$pkgver.tar.gz")
sha256sums=('3b4e7a34d0fe0633493901be9a89cf2cf79723c8642f4201050bb636fe75cc83')
# "https://github.com/daveshanley/vacuum/archive/refs/tags/v$pkgver/$pkgname-$pkgver.tar.gz"
source=(
"git+https://github.com/daveshanley/vacuum.git#tag=v${pkgver}"
)
sha256sums=('b6229ec27dafdbac748e6567f42aee3303b5f0bbfe5b38b1f8bccba11ded8982')
build() {
_commit=$(bsdcat "$pkgname"-"$pkgver".tar.gz | git get-tar-commit-id)
cd "$pkgname-$pkgver"
#_commit=$(bsdcat "$pkgname"-"$pkgver".tar.gz | git get-tar-commit-id)
cd "$pkgname"
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'"
#TZ=UTC printf -v _date '%(%FT%TZ)T' "$SOURCE_DATE_EPOCH"
go build -ldflags "-linkmode=external"
./"$pkgname" completion bash >completion.bash
./"$pkgname" completion fish >completion.fish
@ -30,12 +32,12 @@ build() {
}
check() {
cd "$pkgname-$pkgver"
cd "$pkgname"
go test ./...
}
package() {
cd "$pkgname-$pkgver"
cd "$pkgname"
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