pgweb/PKGBUILD

37 lines
749 B
Bash
Raw Normal View History

2025-01-26 22:53:47 -05:00
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')