blob: db3329619fa7b5f156afce0389756bc2da7dc6ae (
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
42
43
44
45
46
47
48
|
# Maintainer: jim3692 <jim3692 at gmail.com>
pkgname="pipewire-screenaudio-git"
pkgver=0.3.4.r11.gbd404d0
pkgver() {
cd "pipewire-screenaudio"
git describe --tags --long --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
pkgrel=1
pkgdesc="Extension to passthrough pipewire audio to WebRTC Screenshare"
arch=('x86_64')
url="https://github.com/IceDBorn/pipewire-screenaudio"
license=('GPL3')
makedepends=(
'cargo'
)
depends=(
'pipewire'
)
optdepends=(
'pipewire-screenaudio-librewolf: Native Messaging for LibreWolf'
)
options=(!lto)
conflicts=()
provides=('pipewire-screenaudio')
source=(
'git+https://github.com/IceDBorn/pipewire-screenaudio.git#branch=main'
)
sha256sums=(
'SKIP'
)
prepare() {
cd $srcdir/pipewire-screenaudio/native/connector-rs
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd $srcdir/pipewire-screenaudio/native/connector-rs
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --all-features
}
package() {
install -Dm644 "$srcdir/pipewire-screenaudio/native/native-messaging-hosts/firefox.json" "$pkgdir/usr/lib/mozilla/native-messaging-hosts/com.icedborn.pipewirescreenaudioconnector.json"
install -Dm755 "$srcdir/pipewire-screenaudio/native/connector-rs/target/debug/connector-rs" "$pkgdir/usr/lib/pipewire-screenaudio/connector-rs/target/debug/connector-rs"
}
|