greenmask

LOW
maintainer agony4001 0 votes scanned 2026-10-27 07:47:02.942332
View on AUR
Why flagged

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

Triggered rules

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
3pkgname=greenmask
4pkgver=0.2.26
5pkgrel=1
6pkgdesc='PostgreSQL dump, anonymization and restore tool'
7arch=('x86_64' 'aarch64')
8url='https://github.com/GreenmaskIO/greenmask'
9license=('Apache-2.0')
10depends=('glibc' 'postgresql-libs')
11makedepends=('go')
12source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
13sha256sums=('2e77626183f52cf6309ed8db4d84ff143fe0e045d8b3c5d47d98d2e50e70a016')
14
15prepare() {
16 cd "${pkgname}-${pkgver}"
17 export GOPATH="${srcdir}/gopath"
18 go mod download -modcacherw
19}
20
21build() {
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 -tags=viper_bind_struct \
30 -ldflags="-linkmode=external -X github.com/greenmaskio/greenmask/cmd/greenmask/cmd.Version=v${pkgver}" \
31 -o greenmask ./cmd/greenmask
32 for shell in bash fish zsh; do
33 ./greenmask completion "${shell}" > "completion.${shell}"
34 done
35}
36
37package() {
38 cd "${pkgname}-${pkgver}"
39 install -Dm755 greenmask -t "${pkgdir}/usr/bin"
40 install -Dm644 completion.bash "${pkgdir}/usr/share/bash-completion/completions/greenmask"
41 install -Dm644 completion.fish "${pkgdir}/usr/share/fish/vendor_completions.d/greenmask.fish"
42 install -Dm644 completion.zsh "${pkgdir}/usr/share/zsh/site-functions/_greenmask"
43 install -Dm644 config.yml.example -t "${pkgdir}/usr/share/doc/${pkgname}"
44}
45

Scan history

Scanned at (UTC)SeverityRules
2026-10-27 07:47:02 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion