gdscript-formatter

LOW
maintainer friedev 1 votes scanned 2026-09-13 15:14:52.955091
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: Aaron Friesen <aaron@frie.dev>
2# shellcheck shell=bash disable=SC2034,SC2154,SC2164
3pkgname=gdscript-formatter
4pkgver=0.25.0
5pkgrel=1
6pkgdesc='A fast code formatter for GDScript and Godot 4'
7arch=('x86_64')
8url='https://www.gdquest.com/library/gdscript_formatter/'
9license=('MIT')
10depends=(glibc libgcc)
11makedepends=(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>
14source=("$pkgname-$pkgver::git+https://github.com/GDQuest/GDScript-formatter.git#tag=$pkgver")
15sha256sums=('1eb407c2bb43616639707e2f311595b474b8307de2561145e46ccb9a036d9cb1')
16
17prepare() {
18 cd "gdscript-formatter-$pkgver"
19 export RUSTUP_TOOLCHAIN=stable
20 cargo fetch --locked --target host-tuple
21}
22
23build() {
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
35check() {
36 cd "gdscript-formatter-$pkgver"
37 export RUSTUP_TOOLCHAIN=stable
38 cargo test --frozen --all-features --workspace
39}
40
41package() {
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)SeverityRules
2026-09-13 15:14:52 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