# Maintainer: Sol Bekic <s+aur at s-ol dot nu>

pkgname="fors-sala"
pkgver=1.0
pkgrel=1
pkgdesc="a reverb that can turn even the smallest of sounds into a wash of shimmering textures"
url="https://fors.fm/sala"
arch=('x86_64')
license=('proprietary')
makedepends=()
depends=('alsa-lib' 'fontconfig' 'gcc-libs' 'freetype2')

# to build this, you need sala_v1.0.zip from the webshop.
# place it next to this PKGBUILD when building.

source=("sala_v${pkgver//./_}.zip::local://sala_v${pkgver//./_}.zip")
b2sums=('416c56a69f3477e6dd838bc4cb913ae7ab1dcf49a81a92ca2a99002677e6dc9288329c0de5156d80b1d23a9ca8d78bbf3f94af3301772ed0cd09f8cc9c6f4b7a')

prepare() {
  cd "$srcdir"
  unzip Sala-v${pkgver//./_}-Linux.zip
}

package() {
  install -Dm755 "$srcdir"/Sala-guide.pdf "$pkgdir"/usr/share/doc/fors-sala/guide.pdf
  install -Dm755 "$srcdir"/Sala.clap "$pkgdir"/usr/lib/clap/Sala.clap
  install -dm755 "$pkgdir"/usr/lib/vst3
  cp -r "$srcdir"/Sala.vst3 "$pkgdir"/usr/lib/vst3/Sala.vst3
}
