# Contributor: Patrick Gaskin <patrick@pgaskin.net>
# Maintainer: Patrick Gaskin <patrick@pgaskin.net>
pkgname=scream
pkgver=4.0
pkgrel=0
pkgdesc="client for scream virtual network sound card for Microsoft Windows"
url="https://github.com/duncanthrax/scream"
arch="all"
license="MS-PL"
options="!check" # no test suite provided
makedepends="alsa-lib-dev pulseaudio-dev cmake samurai"
source="$pkgname-$pkgver.tar.gz::https://github.com/duncanthrax/scream/archive/$pkgver.tar.gz"
builddir=$srcdir/$pkgname-$pkgver/Receivers/unix

build() {
	cmake -B build -G Ninja \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_BUILD_TYPE=None
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
70b41f946e5f3dc3ccdceef752a719ba59841a850a9b347e8d33dc08dd5c3a4ba3d2fe5ae5004b9b621372f5d3faf52b34dc02fdaaa5be6f89991084425f682a  scream-4.0.tar.gz
"
