greenmask-git

LOW
maintainer agony4001 0 votes scanned 2026-10-27 11:47:37.152749
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-git
4pkgver=r602.3a1befc
5pkgrel=1
6pkgdesc='PostgreSQL dump, anonymization and restore tool (git version)'
7arch=('x86_64' 'aarch64')
8url='https://github.com/GreenmaskIO/greenmask'
9license=('Apache-2.0')
10depends=('glibc' 'postgresql-libs')
11makedepends=('git' 'go')
12provides=('greenmask')
13conflicts=('greenmask')
14source=("greenmask::git+${url}.git")
15sha256sums=('SKIP')
16
17pkgver() {
18 cd greenmask
19 printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
20}
21
22prepare() {
23 cd greenmask
24 export GOPATH="${srcdir}/gopath"
25 go mod download -x -modcacherw
26}
27
28build() {
29 cd greenmask
30 export GOPATH="${srcdir}/gopath"
31 export CGO_CPPFLAGS="${CPPFLAGS}"
32 export CGO_CFLAGS="${CFLAGS}"
33 export CGO_CXXFLAGS="${CXXFLAGS}"
34 export CGO_LDFLAGS="${LDFLAGS}"
35 export GOFLAGS='-buildmode=pie -trimpath -buildvcs=false -mod=readonly -modcacherw'
36 local version
37 version=$(git describe --tags)
38 go build -v -tags=viper_bind_struct \
39 -ldflags="-linkmode=external -X github.com/greenmaskio/greenmask/cmd/greenmask/cmd.Version=${version}" \
40 -o greenmask ./cmd/greenmask
41 for shell in bash fish zsh; do
42 ./greenmask completion "${shell}" > "completion.${shell}"
43 done
44}
45
46package() {
47 cd greenmask
48 install -Dm755 greenmask -t "${pkgdir}/usr/bin"
49 install -Dm644 completion.bash "${pkgdir}/usr/share/bash-completion/completions/greenmask"
50 install -Dm644 completion.fish "${pkgdir}/usr/share/fish/vendor_completions.d/greenmask.fish"
51 install -Dm644 completion.zsh "${pkgdir}/usr/share/zsh/site-functions/_greenmask"
52 install -Dm644 config.yml.example -t "${pkgdir}/usr/share/doc/${pkgname}"
53}
54

Scan history

Scanned at (UTC)SeverityRules
2026-10-27 11:47:37 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