stfu
LOW
maintainer horizzon
0 votes
scanned 2026-10-24 05:39:24.161025
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: horizzon3507 <148660626+horizzon3507@users.noreply.github.com>
2
# Upstream: https://github.com/horizzon3507/stfu
3
4
pkgname=stfu
5
pkgver=0.2.0
6
pkgrel=1
7
pkgdesc="Kill switch for all microphones (PipeWire/WirePlumber)"
8
arch=('x86_64' 'aarch64')
9
url="https://github.com/horizzon3507/stfu"
10
license=('MIT')
11
depends=('gcc-libs' 'wireplumber' 'systemd')
12
makedepends=('cargo')
13
provides=('stfu')
14
conflicts=('stfu-bin' 'stfu-git')
15
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/horizzon3507/stfu/archive/refs/tags/v${pkgver}.tar.gz")
16
sha256sums=('064b55dea1e2d18387f453f67f195a94e56cb4790b123dacd0190b4805fde4b0')
17
18
prepare() {
19
cd "${pkgname}-${pkgver}"
20
export RUSTUP_TOOLCHAIN=stable
21
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
22
}
23
24
build() {
25
cd "${pkgname}-${pkgver}"
26
export RUSTUP_TOOLCHAIN=stable
27
export CARGO_TARGET_DIR=target
28
export STFU_OUT_DIR="${srcdir}/assets"
29
cargo build --frozen --release
30
}
31
32
check() {
33
cd "${pkgname}-${pkgver}"
34
export RUSTUP_TOOLCHAIN=stable
35
cargo test --frozen --release
36
}
37
38
package() {
39
cd "${pkgname}-${pkgver}"
40
41
# Binary
42
install -Dm755 "target/release/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
43
44
# License
45
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
46
47
# Shell completions
48
install -Dm644 "${srcdir}/assets/completions/stfu.bash" \
49
"${pkgdir}/usr/share/bash-completion/completions/${pkgname}" 2>/dev/null || true
50
install -Dm644 "${srcdir}/assets/completions/_stfu" \
51
"${pkgdir}/usr/share/zsh/site-functions/_${pkgname}" 2>/dev/null || true
52
install -Dm644 "${srcdir}/assets/completions/stfu.fish" \
53
"${pkgdir}/usr/share/fish/vendor_completions.d/${pkgname}.fish" 2>/dev/null || true
54
55
# Manpage
56
if [[ -f "${srcdir}/assets/man/stfu.1" ]]; then
57
install -Dm644 "${srcdir}/assets/man/stfu.1" \
58
"${pkgdir}/usr/share/man/man1/${pkgname}.1"
59
fi
60
61
# Documentation
62
install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md" 2>/dev/null || true
63
install -Dm644 CHANGELOG.md "${pkgdir}/usr/share/doc/${pkgname}/CHANGELOG.md" 2>/dev/null || true
64
}
65
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-24 05:39:24 | Low | 1 |