centrifugo-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=centrifugo-git
4pkgver=r1996.3a8731a
5pkgrel=1
6pkgdesc='Scalable real-time messaging server (git version)'
7arch=('x86_64' 'aarch64')
8url='https://github.com/centrifugal/centrifugo'
9license=('Apache-2.0')
10depends=('glibc')
11makedepends=('git' 'go')
12provides=('centrifugo')
13conflicts=('centrifugo')
14install=centrifugo.install
15source=("centrifugo::git+${url}.git"
16 'centrifugo.service'
17 'centrifugo.sysusers'
18 'centrifugo.tmpfiles')
19sha256sums=('SKIP'
20 'f61eeb35bfa248be947b0da434bf82815d2a0396f10933e4aadac06a73462f9c'
21 'dd656417db47b6dd5260a8a6b1f82005c80b6555ac65dd375a95e3aa5168e728'
22 '3a4a5123db7293dc103187f406a168214ced95bda0c4f6c0f06508cf262a9718')
23
24pkgver() {
25 cd centrifugo
26 printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
27}
28
29prepare() {
30 cd centrifugo
31 export GOPATH="${srcdir}/gopath"
32 go mod download -x -modcacherw
33}
34
35build() {
36 cd centrifugo
37 export GOPATH="${srcdir}/gopath"
38 export CGO_CPPFLAGS="${CPPFLAGS}"
39 export CGO_CFLAGS="${CFLAGS}"
40 export CGO_CXXFLAGS="${CXXFLAGS}"
41 export CGO_LDFLAGS="${LDFLAGS}"
42 export GOFLAGS='-buildmode=pie -trimpath -buildvcs=false -mod=readonly -modcacherw'
43 local version
44 version=$(git describe --tags | sed 's/^v//')
45 go build -v -ldflags="-linkmode=external -X github.com/centrifugal/centrifugo/v6/internal/build.Version=${version}" -o centrifugo .
46}
47
48check() {
49 cd centrifugo
50 export GOPATH="${srcdir}/gopath"
51 export GOFLAGS='-buildvcs=false -mod=readonly -modcacherw'
52 local packages
53 mapfile -t packages < <(bash misc/scripts/test_packages.sh unit)
54 go test "${packages[@]}"
55}
56
57package() {
58 install -dm755 "${pkgdir}/etc/centrifugo"
59 install -Dm644 centrifugo.service -t "${pkgdir}/usr/lib/systemd/system"
60 install -Dm644 centrifugo.sysusers "${pkgdir}/usr/lib/sysusers.d/centrifugo.conf"
61 install -Dm644 centrifugo.tmpfiles "${pkgdir}/usr/lib/tmpfiles.d/centrifugo.conf"
62 install -Dm755 centrifugo/centrifugo -t "${pkgdir}/usr/bin"
63}
64

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