# Maintainer: Marian Buschsieweke <marian.buschsieweke@posteo.net>
# Contributor: Marian Buschsieweke <marian.buschsieweke@posteo.net>
pkgname=noson
pkgver=2.12.8
pkgrel=0
pkgdesc="An easy client interface to drive SONOS player"
url="https://github.com/janbar/noson"
arch="all"
license="GPL-3.0-only"
subpackages="$pkgname-dev $pkgname-dbg"
makedepends="
	cmake
	flac-dev
	openssl-dev>3
	pulseaudio-dev
	samurai
	zlib-dev
	"
source="
	$pkgname-$pkgver.tar.gz::https://github.com/janbar/noson/archive/$pkgver.tar.gz

	0001-jsonparser-missing-cstdint.patch
	"
options="!check" # No unit tests

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

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

sha512sums="
015ccf47a92366aee85b07b396df7754fa20eb7c19a0d2063802bc9448e9d8e911368e49831470ed6f6e3c525cd1c4e61e0e090dc3e363efe0cb665d7ce14df5  noson-2.12.8.tar.gz
8084ef4f6bb45d4eb449127cf84325a57a199544ffb7aa73431c210d8c501c3e1680682f0d4479467d94cad7d45cf0d51f81e4ac0d376db6f4fee9e7aca3ec5e  0001-jsonparser-missing-cstdint.patch
"
