sonyctl
LOW
maintainer daanh
0 votes
scanned 2026-09-14 11:16:56.753038
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: Daan Hessen <daanh2002@gmail.com>
2
pkgname=sonyctl
3
pkgver=0.1.2
4
pkgrel=1
5
pkgdesc="A Rust API/CLI that allows every device on your network to control your Sony headphones"
6
arch=('x86_64')
7
url="https://github.com/DaanHessen/sonyctl"
8
license=('AGPL-3.0-or-later')
9
depends=('dbus' 'bluez' 'bluez-utils')
10
# sdptool, used to resolve the vendor RFCOMM channel.
11
optdepends=('bluez-deprecated-tools: RFCOMM channel auto-detection')
12
install=sonyctl.install
13
makedepends=('cargo')
14
options=('!lto' '!debug')
15
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
16
sha256sums=('1ab919933459914613cd3dfb4ad1c766c4dc578c84d7f862ef9442135710ae86')
17
18
build() {
19
cd "${pkgname}-${pkgver}"
20
export RUSTUP_TOOLCHAIN=stable
21
export CARGO_TARGET_DIR=target
22
# Disable LTO so ring links correctly, and remap the build path so the
23
# binary carries no reference to $srcdir.
24
export RUSTFLAGS="-C lto=off --remap-path-prefix=$srcdir=/"
25
cargo build --release --locked --all-features
26
}
27
28
check() {
29
cd "${pkgname}-${pkgver}"
30
export RUSTUP_TOOLCHAIN=stable
31
# The live tests are #[ignore]d and need the headphones connected.
32
cargo test --release --locked
33
}
34
35
package() {
36
cd "${pkgname}-${pkgver}"
37
install -Dm755 "target/release/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
38
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
39
install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
40
install -Dm644 docs/protocol.md "${pkgdir}/usr/share/doc/${pkgname}/protocol.md"
41
42
install -Dm644 "${pkgname}.service" "${pkgdir}/usr/lib/systemd/user/${pkgname}.service"
43
44
install -Dm755 "contrib/waybar/${pkgname}-waybar.sh" \
45
"${pkgdir}/usr/share/${pkgname}/waybar/${pkgname}-waybar.sh"
46
}
47
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-14 11:16:56 | Low | 1 |