# Description: Audio processing library for changing tempo, pitch and playback rates.
# URL: https://codeberg.org/soundtouch/soundtouch
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: 

name=soundtouch
version=2.3.2
release=1
source=(https://codeberg.org/$name/$name/archive/$version.tar.gz)
renames=($name-$version.tar.gz)

build() {
	cmake -S $name -B build -G Ninja \
		-D CMAKE_INSTALL_PREFIX=/usr \
		-D CMAKE_BUILD_TYPE=Release \
		-D CMAKE_INSTALL_LIBDIR=lib \
		-D BUILD_SHARED_LIBS=ON \
		-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG"

	ninja -C build
	DESTDIR=$PKG ninja -C build install
}
