sonarqube-cli
LOW
maintainer rubin55
0 votes
scanned 2026-09-23 13:40:34.773403
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
3
pkgname='sonarqube-cli'
4
pkgver=1.8.0.5274
5
pkgrel=1
6
pkgdesc="Command line interface for SonarQube Server and SonarQube Cloud"
7
arch=('x86_64' 'aarch64')
8
url="https://github.com/SonarSource/sonarqube-cli"
9
license=('LGPL-3.0-or-later')
10
depends=('gcc-libs' 'glibc' 'icu')
11
makedepends=('bun')
12
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/${pkgver}.tar.gz")
13
sha256sums=('56cd1c4939fd7a5927c3a01500a8e2159dfc28b9855ef1f1471713bf32aab9a8')
14
15
prepare() {
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
33
build() {
34
cd "${pkgname}-${pkgver}"
35
bun build-scripts/build-binary.ts
36
}
37
38
check() {
39
cd "${pkgname}-${pkgver}"
40
bun run test:unit
41
dist/sonarqube-cli --version
42
}
43
44
package() {
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) | Severity | Rules |
|---|---|---|
| 2026-09-23 13:40:34 | Low | 1 |