pgstream
CLEAN
maintainer agony4001
0 votes
scanned 2026-10-29 00:13:55.229276
Triggered rules
Clean
AI review downgraded a static finding
llm_review
The static rules flagged this LOW, but an AI model (qwen/qwen3-235b-a22b-2507) reviewed the full PKGBUILD and judged it CLEAN (confidence 95%): The package builds from a legitimate source tarball hosted on the project's official GitHub repository, uses standard Go build practices, and installs only the resulting binary and completion scripts; the flagged low votes and recent upload are common for new but legitimate AUR packages.
1 higher static finding superseded - not the current verdict (shown for transparency)
Low
Few votes, recently uploaded
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
PKGBUILD
1
# Maintainer: agony <27015 at riseup dot net>
2
3
pkgname=pgstream
4
pkgver=1.5.0
5
pkgrel=1
6
pkgdesc='PostgreSQL replication with DDL changes'
7
arch=('x86_64' 'aarch64')
8
url='https://github.com/xataio/pgstream'
9
license=('Apache-2.0')
10
depends=('glibc' 'postgresql-libs')
11
makedepends=('go')
12
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
13
sha256sums=('910256b63eb68266cb734a1f5ef4ec253b51ecfd90d88d7c44daa225d8c361a9')
14
15
prepare() {
16
cd "${pkgname}-${pkgver}"
17
export GOPATH="${srcdir}/gopath"
18
go mod download -x -modcacherw
19
}
20
21
build() {
22
cd "${pkgname}-${pkgver}"
23
export GOPATH="${srcdir}/gopath"
24
export CGO_CPPFLAGS="${CPPFLAGS}"
25
export CGO_CFLAGS="${CFLAGS}"
26
export CGO_CXXFLAGS="${CXXFLAGS}"
27
export CGO_LDFLAGS="${LDFLAGS}"
28
export GOFLAGS='-buildmode=pie -trimpath -buildvcs=false -mod=readonly -modcacherw'
29
go build -v -ldflags="-linkmode=external -X github.com/xataio/pgstream/cmd.Version=${pkgver}" -o pgstream .
30
for shell in bash fish zsh; do
31
./pgstream completion "${shell}" > "completion.${shell}"
32
done
33
}
34
35
check() {
36
cd "${pkgname}-${pkgver}"
37
export GOPATH="${srcdir}/gopath"
38
export GOFLAGS='-buildvcs=false -mod=readonly -modcacherw'
39
go test ./...
40
}
41
42
package() {
43
cd "${pkgname}-${pkgver}"
44
install -Dm755 pgstream -t "${pkgdir}/usr/bin"
45
install -Dm644 completion.bash "${pkgdir}/usr/share/bash-completion/completions/pgstream"
46
install -Dm644 completion.fish "${pkgdir}/usr/share/fish/vendor_completions.d/pgstream.fish"
47
install -Dm644 completion.zsh "${pkgdir}/usr/share/zsh/site-functions/_pgstream"
48
}
49
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-29 00:13:55 | Clean | 2 |
| 2026-10-28 21:50:44 | Low | 1 |