aports/testing/pw-volume/APKBUILD

43 lines
1.2 KiB
Text

# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=pw-volume
pkgver=0.5.0
pkgrel=1
pkgdesc="Basic interface to PipeWire volume controls"
url="https://github.com/smasher164/pw-volume"
# loongarch64: blocked by libc crate
arch="all !s390x !loongarch64" # blocked by pipewire -> libcamera -> libcamera-ipa
license="MIT"
depends="cmd:pw-cli cmd:pw-dump"
makedepends="cargo cargo-auditable"
source="https://github.com/smasher164/pw-volume/archive/v$pkgver/pw-volume-$pkgver.tar.gz
update-lockfile.patch
"
# !check: no tests provided
# net: fetch dependencies
options="!check net"
export CARGO_PROFILE_RELEASE_OPT_LEVEL="z"
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
}
build() {
cargo auditable build --frozen --release
}
check() {
cargo test --frozen
}
package() {
install -D -m755 target/release/pw-volume -t "$pkgdir"/usr/bin/
}
sha512sums="
05de82e615dee4e599a786d7b384534462042547b3a26b910b475e7d2c77fa4926325a0e21cd78610aa37e11d523aac996a351a2127b74f15ac0469144a1e337 pw-volume-0.5.0.tar.gz
4cedcb45535611376e75439a279d9f17dff4e15d62864c630c00ea36df4b939d1f2e8b15200181f3c83500ef8197367777558f4e0c5c7d3d48888dfa812b73ce update-lockfile.patch
"