temp/wys: fork from alpine to build fixes for Librem5 call audio (MR 1960)

This has upstreamed fixes for call audio on the L5, but upstream hasn't
made a release yet. In the meantime, this is needed for calls to work on
5.11.0 and later kernels

[ci:skip-build]: won't finish in time
This commit is contained in:
Clayton Craft 2021-02-18 16:50:50 -08:00 committed by Oliver Smith
parent 5943517ffe
commit fa786b02a3
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
2 changed files with 45 additions and 0 deletions

34
temp/wys/APKBUILD Normal file
View file

@ -0,0 +1,34 @@
# Contributor: Clayton Craft <clayton@craftyguy.net>
# Maintainer: Clayton Craft <clayton@craftyguy.net>
pkgname=wys
pkgver=0.1.10_git20210214
pkgrel=0
pkgdesc="A daemon to bring up and take down PulseAudio loopbacks for phone call audio."
arch="all !mips64 !s390x" # blocked by modemmanager
url="https://source.puri.sm/Librem5/wys"
license="GPL-3.0-or-later"
makedepends="meson pulseaudio-dev glib-dev modemmanager-dev"
_commit=16b5c2813e135454506acb7df2c967f52592ea20
source="
$pkgname-$pkgver.tar.gz::https://source.puri.sm/Librem5/wys/-/archive/$_commit/wys-$_commit.tar.gz
wys.desktop"
# $pkgname-$pkgver.tar.gz::https://source.puri.sm/Librem5/wys/-/archive/v$pkgver/wys-v$pkgver.tar.gz
# builddir=$srcdir/$pkgname-v$pkgver
builddir=$srcdir/$pkgname-$_commit
build() {
abuild-meson build
meson compile ${JOBS:+-j ${JOBS}} -C build
}
check() {
meson test --no-rebuild -v -C build
}
package() {
DESTDIR="$pkgdir" meson install --no-rebuild -C build
install -D -m644 $srcdir/wys.desktop $pkgdir/etc/xdg/autostart/wys.desktop
}
sha512sums="b132172eb15a99005e964d2d8afaf0bb1634fe25637e0cc17d63a9ef75f4ddd494d5ac14e242480e013b8342ee2858e997f8decc8b625a65a453928df773a85d wys-0.1.10_git20210214.tar.gz
0f67c24d9af727e803d5cdb2dc01c7d99a2bfe33414fdc29cf5ec34c5a308b3a5f65970832087310e25e4ba7dc706b5a1d1ae99ab595d7264e972047a08f71e4 wys.desktop"

11
temp/wys/wys.desktop Normal file
View file

@ -0,0 +1,11 @@
[Desktop Entry]
Name=Wys
Name[es]=Wys
Comment=Daemon for managing PulseAudio for phone call audio
Comment[es]=Demonio para manejar PulseAudio por audio de llamadas telefónicas
Exec=/usr/bin/wys
NoDisplay=true
Terminal=false
Type=Application
StartupNotify=true
X-GNOME-AutoRestart=true