initial commit
This commit is contained in:
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')
|
Reference in New Issue
Block a user