sonyctl

LOW
maintainer daanh 0 votes scanned 2026-09-14 11:16:56.753038
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: Daan Hessen <daanh2002@gmail.com>
2pkgname=sonyctl
3pkgver=0.1.2
4pkgrel=1
5pkgdesc="A Rust API/CLI that allows every device on your network to control your Sony headphones"
6arch=('x86_64')
7url="https://github.com/DaanHessen/sonyctl"
8license=('AGPL-3.0-or-later')
9depends=('dbus' 'bluez' 'bluez-utils')
10# sdptool, used to resolve the vendor RFCOMM channel.
11optdepends=('bluez-deprecated-tools: RFCOMM channel auto-detection')
12install=sonyctl.install
13makedepends=('cargo')
14options=('!lto' '!debug')
15source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
16sha256sums=('1ab919933459914613cd3dfb4ad1c766c4dc578c84d7f862ef9442135710ae86')
17
18build() {
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
28check() {
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
35package() {
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)SeverityRules
2026-09-14 11:16:56 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