# Contributor: Sodface <sod@sodface.com>
# Maintainer: Sodface <sod@sodface.com>
pkgname=libodiosacd
pkgver=25.4.1
pkgrel=0
pkgdesc="SACD decoder library"
url="https://tari.in/www/software/libodiosacd/"
arch="all"
license="GPL-3.0-or-later"
makedepends="cmake gnu-libiconv-dev samurai"
options="!check" # no test suite
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/tari01/libodiosacd/archive/refs/tags/$pkgver.tar.gz"

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DIconv_INCLUDE_DIR=/usr/include/gnu-libiconv
	cmake --build build
}

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

sha512sums="
7e15ae4d62252ad75f4ffa61e31240a73c1fa82a491e087629289facf7f3f3a93a4bd6225b553b9c9063e4b51998dfc39940071ba78b6e0aa7b2f2e5dd8950af  libodiosacd-25.4.1.tar.gz
"
