fix: fixed compile issues and added build steps
CI / Test (push) Successful in 24s
CI / Build snapshot (push) Successful in 1m17s

This commit is contained in:
Hein
2026-06-29 08:52:21 +02:00
parent 9243c281a6
commit 531087bfed
13 changed files with 147 additions and 14 deletions
+19
View File
@@ -0,0 +1,19 @@
# Maintainer: Hein (Warky Devs) <hein@warky.dev>
pkgname=pgtidy-bin
pkgver=0.1.0
pkgrel=1
pkgdesc="PostgreSQL SQL formatter and linter"
arch=('x86_64' 'aarch64')
url="https://git.warky.dev/wdevs/pgtidy"
license=('MIT')
provides=('pgtidy')
conflicts=('pgtidy')
source_x86_64=("$pkgname-$pkgver.tar.gz::$url/releases/download/v$pkgver/pgtidy_${pkgver}_linux_amd64.tar.gz")
source_aarch64=("$pkgname-$pkgver.tar.gz::$url/releases/download/v$pkgver/pgtidy_${pkgver}_linux_arm64.tar.gz")
sha256sums_x86_64=('SKIP')
sha256sums_aarch64=('SKIP')
package() {
install -Dm755 "pgtidy" "$pkgdir/usr/bin/pgtidy"
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
+40
View File
@@ -0,0 +1,40 @@
Name: pgtidy
Version: 0.1.0
Release: 1%{?dist}
Summary: PostgreSQL SQL formatter and linter
License: MIT
URL: https://git.warky.dev/wdevs/pgtidy
Source0: %{name}-%{version}.tar.gz
BuildRequires: golang >= 1.26
%global debug_package %{nil}
%define _debugsource_packages 0
%define _debuginfo_subpackages 0
%description
PgTidy formats and lints PostgreSQL SQL, enforcing a consistent style
for migrations, schemas, functions, procedures, and triggers.
%prep
%autosetup
%build
export CGO_ENABLED=0
go build \
-trimpath \
-ldflags "-X main.version=%{version}" \
-o %{name} ./cmd/pgtidy
%install
install -Dm755 %{name} %{buildroot}%{_bindir}/%{name}
install -Dm644 LICENSE %{buildroot}%{_licensedir}/%{name}/LICENSE
%files
%license LICENSE
%{_bindir}/%{name}
%changelog
* Sun Jun 29 2026 Hein (Warky Devs) <hein@warky.dev> - 0.1.0-1
- Initial package
+10
View File
@@ -0,0 +1,10 @@
Package: pgtidy
Version: VERSION
Architecture: ARCH
Maintainer: Hein (Warky Devs) <hein@warky.dev>
Section: database
Priority: optional
Homepage: https://git.warky.dev/wdevs/pgtidy
Description: PostgreSQL SQL formatter and linter
PgTidy formats and lints PostgreSQL SQL, enforcing a consistent style
for migrations, schemas, functions, procedures, and triggers.