2020-07-10 13:38:33 +00:00
|
|
|
# Special package with additional patch to make it work on the pinephone. Can be removed
|
|
|
|
# once that's upstreamed to Purism or another solution has been implemented.
|
|
|
|
#
|
|
|
|
# differences with upsteam wys:
|
|
|
|
# * added patch for switching pulse profiles
|
|
|
|
# * added pulseaudio-utils dependency for pactl command
|
|
|
|
# Maintainer: Martijn Braam <martijn@brixit.nl>
|
|
|
|
pkgname=wys-pinephone
|
|
|
|
pkgver=0.1.7
|
2020-09-04 18:27:50 +00:00
|
|
|
pkgrel=1
|
2020-07-10 13:38:33 +00:00
|
|
|
pkgdesc="A daemon to bring up and take down PulseAudio loopbacks for phone call audio."
|
|
|
|
arch="all"
|
|
|
|
url="https://source.puri.sm/Librem5/wys"
|
|
|
|
license="GPL-3.0-or-later"
|
|
|
|
depends="pulseaudio-utils"
|
2020-09-04 18:27:50 +00:00
|
|
|
makedepends="
|
|
|
|
glib-dev
|
|
|
|
meson
|
|
|
|
modemmanager-dev
|
|
|
|
pulseaudio-dev
|
|
|
|
"
|
|
|
|
source="$pkgname-$pkgver.tar.gz::https://source.puri.sm/Librem5/wys/-/archive/v$pkgver/wys-v$pkgver.tar.gz
|
2020-07-10 13:38:33 +00:00
|
|
|
0001-Simplify-daemon-to-only-switch-card-profiles.patch
|
2020-09-04 18:27:50 +00:00
|
|
|
wys.desktop
|
|
|
|
"
|
2020-07-10 13:38:33 +00:00
|
|
|
|
2020-09-04 18:27:50 +00:00
|
|
|
builddir="$srcdir/wys-v$pkgver"
|
2020-07-10 13:38:33 +00:00
|
|
|
|
|
|
|
build() {
|
2020-09-04 18:27:50 +00:00
|
|
|
abuild-meson . output
|
|
|
|
meson compile ${JOBS:+-j ${JOBS}} -C output
|
2020-07-10 13:38:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
2020-09-04 18:27:50 +00:00
|
|
|
meson test -C output
|
2020-07-10 13:38:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-09-04 18:27:50 +00:00
|
|
|
DESTDIR="$pkgdir" meson install -C output
|
2020-07-10 13:38:33 +00:00
|
|
|
install -D -m644 $srcdir/wys.desktop $pkgdir/etc/xdg/autostart/wys.desktop
|
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="81a9f97cced2ceee0823bf3e45bb8fd6b79d8ae6d8fb1b459f8a5e24ebde0884899924c5af601466317ff397246028aafeec97504179f54c78e83eee7f322437 wys-pinephone-0.1.7.tar.gz
|
|
|
|
ad825ad3e47f5cb7cc188ef845ed37654c591669d4d3b7733fd5242057a1b613618599f776ebe86d0c8ee6254c78b68a69f01e8b0483c31e302cec41700f92b6 0001-Simplify-daemon-to-only-switch-card-profiles.patch
|
|
|
|
0f67c24d9af727e803d5cdb2dc01c7d99a2bfe33414fdc29cf5ec34c5a308b3a5f65970832087310e25e4ba7dc706b5a1d1ae99ab595d7264e972047a08f71e4 wys.desktop"
|