# Maintainer: Antonio Rojas <arojas@archlinux.org>
# Contributor: WorMzy Tykashi <wormzy.tykashi@gmail.com>

pkgname=noise-suppression-for-voice
pkgver=1.21
pkgrel=1
pkgdesc='A real-time noise suppression plugin for voice'
arch=(x86_64 aarch64)
url='https://github.com/werman/noise-suppression-for-voice'
license=(GPL-3.0-only)
depends=(freetype2
         glibc
         libatomic
         libgcc
         libstdc++)
makedepends=(cmake
             git
             libx11
             libxcursor
             libxinerama
             libxrandr)
source=(git+https://github.com/werman/noise-suppression-for-voice#tag=v$pkgver)
sha256sums=('4ed84e422a709ef98a834b0cb5fc8c445173d3aa05f5a49e8ef3f4577c3a0650')

build() {
  cmake -B build -S $pkgname \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=None
  cmake --build build
}

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