initial commit

This commit is contained in:
Balakrishnan Balasubramanian 2025-01-26 22:53:47 -05:00
commit 6fb6a0d635
3 changed files with 52 additions and 0 deletions

12
.SRCINFO Normal file
View File

@ -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

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
pgweb*.pkg.tar.zst
pkg/
src/
pgweb/

36
PKGBUILD Normal file
View File

@ -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')