From 083b2a2fd81f028941f7ab0d57dea47efbfab031 Mon Sep 17 00:00:00 2001 From: Galen Abell Date: Fri, 12 Mar 2021 19:11:44 +0100 Subject: [PATCH] testing/apulse: new aport https://github.com/i-rinat/apulse PulseAudio emulation for ALSA testing/ --- testing/apulse/APKBUILD | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 testing/apulse/APKBUILD diff --git a/testing/apulse/APKBUILD b/testing/apulse/APKBUILD new file mode 100644 index 00000000000..f295333a89d --- /dev/null +++ b/testing/apulse/APKBUILD @@ -0,0 +1,32 @@ +# Contributor: Galen Abell +# Maintainer: Galen Abell +pkgname=apulse +pkgver=0.1.13 +pkgrel=0 +pkgdesc="PulseAudio emulation for ALSA" +url="https://github.com/i-rinat/apulse" +arch="all" +license="MIT" +makedepends="cmake glib-dev alsa-lib-dev" +options="!check" # no tests +subpackages="$pkgname-doc" +source="$pkgname-$pkgver.tar.gz::https://github.com/i-rinat/apulse/archive/v$pkgver.tar.gz" + +build() { + if [ "$CBUILD" != "$CHOST" ]; then + CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" + fi + cmake -B build \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_SHARED_LIBS=True \ + -DCMAKE_BUILD_TYPE=None \ + $CMAKE_CROSSOPTS . + cmake --build build +} + +package() { + DESTDIR="$pkgdir" cmake --install build +} + +sha512sums="366385ae2304f7ff697ba70951d0753a5b1630310922e3763fd0813a73e0b4088b715135295aa2fa9111b8edcf91d82849dc31346b292b2e9db598bcdd47b007 apulse-0.1.13.tar.gz"