sonarqube-cli

LOW
maintainer rubin55 0 votes scanned 2026-09-23 13:40:34.773403
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: Rubin Simons <me@rubin55.org>
2
3pkgname='sonarqube-cli'
4pkgver=1.8.0.5274
5pkgrel=1
6pkgdesc="Command line interface for SonarQube Server and SonarQube Cloud"
7arch=('x86_64' 'aarch64')
8url="https://github.com/SonarSource/sonarqube-cli"
9license=('LGPL-3.0-or-later')
10depends=('gcc-libs' 'glibc' 'icu')
11makedepends=('bun')
12source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/${pkgver}.tar.gz")
13sha256sums=('56cd1c4939fd7a5927c3a01500a8e2159dfc28b9855ef1f1471713bf32aab9a8')
14
15prepare() {
16 cd "${pkgname}-${pkgver}"
17
18 # Upstream resolves packages through a private registry mirror,
19 # so make it an empty URL so bun uses the default registry.
20 sed -i 's|"https://repox\.jfrog\.io/[^"]*"|""|' bun.lock
21 sed -i '/^registry = /d' bunfig.toml
22
23 # Disable self-update command.
24 sed -i 's/enableSelfUpdate: true/enableSelfUpdate: false/' \
25 src/core/host/distribution.ts tests/unit/core/host/distribution.test.ts
26
27 bun install --frozen-lockfile --ignore-scripts
28
29 # Append build number to version, same way as CI does.
30 bun build-scripts/set-build-number.ts "${pkgver##*.}"
31}
32
33build() {
34 cd "${pkgname}-${pkgver}"
35 bun build-scripts/build-binary.ts
36}
37
38check() {
39 cd "${pkgname}-${pkgver}"
40 bun run test:unit
41 dist/sonarqube-cli --version
42}
43
44package() {
45 cd "${pkgname}-${pkgver}"
46
47 install -Dm755 dist/sonarqube-cli "${pkgdir}/usr/bin/sonar"
48
49 install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
50 install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
51}
52

Scan history

Scanned at (UTC)SeverityRules
2026-09-23 13:40:34 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