initial commit
This commit is contained in:
commit
6fb6a0d635
12
.SRCINFO
Normal file
12
.SRCINFO
Normal 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
4
.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
pgweb*.pkg.tar.zst
|
||||||
|
pkg/
|
||||||
|
src/
|
||||||
|
pgweb/
|
36
PKGBUILD
Normal file
36
PKGBUILD
Normal 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')
|
Loading…
x
Reference in New Issue
Block a user