ci(release): rename source AUR package to pgtidy-src

Rename the source-built AUR package from pgtidy to pgtidy-src. It
provides and conflicts with pgtidy, matching pgtidy-bin.
This commit is contained in:
2026-10-12 21:27:29 +02:00
parent 0863c110dd
commit f0b0477931
3 changed files with 11 additions and 10 deletions
+33
View File
@@ -0,0 +1,33 @@
# Maintainer: Hein (Warky Devs) <hein@warky.dev>
pkgname=pgtidy-src
pkgver=0.0.10
pkgrel=1
pkgdesc="PostgreSQL SQL formatter and linter"
arch=('x86_64' 'aarch64')
url="https://git.warky.dev/wdevs/pgtidy"
license=('MIT')
makedepends=('go')
provides=('pgtidy')
conflicts=('pgtidy')
source=("$pkgname-$pkgver.tar.gz::$url/releases/download/v$pkgver/pgtidy-v$pkgver-source.tar.gz")
sha256sums=('SKIP')
build() {
cd "pgtidy-$pkgver"
export CGO_ENABLED=0
go build \
-trimpath \
-ldflags "-X main.version=v$pkgver" \
-o pgtidy ./cmd/pgtidy
}
check() {
cd "pgtidy-$pkgver"
go test ./...
}
package() {
cd "pgtidy-$pkgver"
install -Dm755 "pgtidy" "$pkgdir/usr/bin/pgtidy"
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}