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 -1
View File
@@ -268,7 +268,7 @@ jobs:
strategy:
fail-fast: false
matrix:
pkg: [pgtidy-bin, pgtidy]
pkg: [pgtidy-bin, pgtidy-src]
steps:
- uses: actions/checkout@v4
+2 -2
View File
@@ -47,9 +47,9 @@ release:
NEXT="v$$MAJOR.$$MINOR.$$((PATCH + 1))"; \
PKGVER="$$MAJOR.$$MINOR.$$((PATCH + 1))"; \
echo "Current: $$CURRENT → Next: $$NEXT"; \
sed -i "s/^pkgver=.*/pkgver=$$PKGVER/" linux/arch/pgtidy-bin/PKGBUILD linux/arch/pgtidy/PKGBUILD; \
sed -i "s/^pkgver=.*/pkgver=$$PKGVER/" linux/arch/pgtidy-bin/PKGBUILD linux/arch/pgtidy-src/PKGBUILD; \
sed -i "s/^Version:.*/Version: $$PKGVER/" linux/centos/pgtidy.spec; \
git add linux/arch/pgtidy-bin/PKGBUILD linux/arch/pgtidy/PKGBUILD linux/centos/pgtidy.spec; \
git add linux/arch/pgtidy-bin/PKGBUILD linux/arch/pgtidy-src/PKGBUILD linux/centos/pgtidy.spec; \
git commit -m "chore(release): bump version to $$PKGVER"; \
git tag -a "$$NEXT" -m "Release $$NEXT"; \
git push origin HEAD "$$NEXT"; \
@@ -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"
}