aboutsummaryrefslogtreecommitdiffstats
path: root/testing/pw-volume/APKBUILD
blob: 2b373d545ffc3929d4bcba5126bdc4773db9f171 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=pw-volume
pkgver=0.4.0
pkgrel=0
pkgdesc="Basic interface to PipeWire volume controls"
url="https://github.com/smasher164/pw-volume"
arch="aarch64 armhf armv7 ppc64le x86 x86_64"  # limited by rust/cargo
license="MIT"
depends="cmd:pw-cli cmd:pw-dump"
makedepends="cargo"
source="https://github.com/smasher164/pw-volume/archive/v$pkgver/pw-volume-$pkgver.tar.gz
	update-lockfile.patch
	"
options="!check"  # no tests provided

export CARGO_PROFILE_RELEASE_OPT_LEVEL="z"
export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"

prepare() {
	default_prepare

	cargo fetch --target="$CTARGET" --locked
}

build() {
	cargo build --frozen --release
}

check() {
	cargo test --frozen
}

package() {
	install -D -m755 target/release/pw-volume -t "$pkgdir"/usr/bin/
}

sha512sums="
9be6a757871326c8b14d1c031a1a4ac002a1591f85171668b6279a6ee02ecb865d0393f69accc9695a11db73a7da67cbeee14aedd36bbff7c46372ee452a2db4  pw-volume-0.4.0.tar.gz
9934a61828c9ee187fccbd11951a957f9755ee8df17625e882f21225747c42f5dabeec51be9f8aacb58ad77821a1139453565de42c6df1eea04bea2a0011339c  update-lockfile.patch
"