gdscript-formatter
LOW
maintainer friedev
1 votes
scanned 2026-09-13 15:14:52.955091
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: Aaron Friesen <aaron@frie.dev>
2
# shellcheck shell=bash disable=SC2034,SC2154,SC2164
3
pkgname=gdscript-formatter
4
pkgver=0.25.0
5
pkgrel=1
6
pkgdesc='A fast code formatter for GDScript and Godot 4'
7
arch=('x86_64')
8
url='https://www.gdquest.com/library/gdscript_formatter/'
9
license=('MIT')
10
depends=(glibc libgcc)
11
makedepends=(cargo git)
12
# Need to clone Git repo since GitHub archives lack the full source code
13
# <https://github.com/GDQuest/GDScript-formatter/issues/344>
14
source=("$pkgname-$pkgver::git+https://github.com/GDQuest/GDScript-formatter.git#tag=$pkgver")
15
sha256sums=('1eb407c2bb43616639707e2f311595b474b8307de2561145e46ccb9a036d9cb1')
16
17
prepare() {
18
cd "gdscript-formatter-$pkgver"
19
export RUSTUP_TOOLCHAIN=stable
20
cargo fetch --locked --target host-tuple
21
}
22
23
build() {
24
cd "gdscript-formatter-$pkgver"
25
# Strip GCC LTO flags to fix linker errors
26
# <https://github.com/rust-lang/rust/issues/146952>
27
export CFLAGS="${CFLAGS/-flto=auto/}"
28
export CXXFLAGS="${CXXFLAGS/-flto=auto/}"
29
export LDFLAGS="${LDFLAGS/-flto=auto/}"
30
export RUSTUP_TOOLCHAIN=stable
31
export CARGO_TARGET_DIR=target
32
cargo build --frozen --release --all-features
33
}
34
35
check() {
36
cd "gdscript-formatter-$pkgver"
37
export RUSTUP_TOOLCHAIN=stable
38
cargo test --frozen --all-features --workspace
39
}
40
41
package() {
42
cd "gdscript-formatter-$pkgver"
43
install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname"
44
install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
45
}
46
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-13 15:14:52 | Low | 1 |