From 6fb6a0d635ddaa750dfd18d1317b38df823c1799 Mon Sep 17 00:00:00 2001 From: Balakrishnan Balasubramanian Date: Sun, 26 Jan 2025 22:53:47 -0500 Subject: [PATCH] initial commit --- .SRCINFO | 12 ++++++++++++ .gitignore | 4 ++++ PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 .SRCINFO create mode 100644 .gitignore create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..52dc5ff --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,12 @@ +pkgbase = pgweb + pkgdesc = Simple web-based and cross platform PostgreSQL database explorer + pkgver = 0.16.2 + pkgrel = 11 + url = https://gitea.balki.me/balki/pgweb + arch = x86_64 + license = MIT + makedepends = go + source = pgweb::git+https://gitea.balki.me/balki/pgweb#branch=anyhttp + sha256sums = SKIP + +pkgname = pgweb diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..878e4f6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +pgweb*.pkg.tar.zst +pkg/ +src/ +pgweb/ diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..118a1fc --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +pkgname=pgweb +pkgver=0.16.2 +pkgrel=11 +pkgdesc='Simple web-based and cross platform PostgreSQL database explorer' +arch=('x86_64') +license=('MIT') +makedepends=('go') +url="https://gitea.balki.me/balki/$pkgname" +source=("$pkgname::git+$url#branch=anyhttp") + +prepare(){ + cd "$pkgname" + mkdir -p build/ +} + +build() { + cd "$pkgname" + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" + go build -o build +} + +check() { + cd "$pkgname" + # go test ./... + true +} + +package() { + cd "$pkgname" + install -Dm755 build/$pkgname "$pkgdir"/usr/bin/$pkgname +} +sha256sums=('SKIP')