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
@@ -1,5 +1,5 @@
# Maintainer: Hein (Warky Devs) <hein@warky.dev>
pkgname=pgtidy
pkgname=pgtidy-src
pkgver=0.0.10
pkgrel=1
pkgdesc="PostgreSQL SQL formatter and linter"
@@ -7,26 +7,27 @@ arch=('x86_64' 'aarch64')
url="https://git.warky.dev/wdevs/pgtidy"
license=('MIT')
makedepends=('go')
conflicts=('pgtidy-bin')
provides=('pgtidy')
conflicts=('pgtidy')
source=("$pkgname-$pkgver.tar.gz::$url/releases/download/v$pkgver/pgtidy-v$pkgver-source.tar.gz")
sha256sums=('SKIP')
build() {
cd "$pkgname-$pkgver"
cd "pgtidy-$pkgver"
export CGO_ENABLED=0
go build \
-trimpath \
-ldflags "-X main.version=v$pkgver" \
-o "$pkgname" ./cmd/pgtidy
-o pgtidy ./cmd/pgtidy
}
check() {
cd "$pkgname-$pkgver"
cd "pgtidy-$pkgver"
go test ./...
}
package() {
cd "$pkgname-$pkgver"
install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname"
cd "pgtidy-$pkgver"
install -Dm755 "pgtidy" "$pkgdir/usr/bin/pgtidy"
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}