# Maintainer (aur):  Martin C. Doege <mdoege at compuserve dot com>
# Contributor: Sean Bolton <sean at smbolton dot com>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>

pkgname=whysynth
pkgver=20170701
pkgrel=1
pkgdesc="A versatile softsynth plugin for the DSSI Soft Synth Interface"
url="http://www.smbolton.com/whysynth.html"
depends=('alsa-lib' 'liblo' 'gtk2' 'fftw' 'ladspa')
makedepends=('dssi')
license=('GPL')
source=(http://www.smbolton.com/whysynth/${pkgname}-${pkgver}.tar.bz2)
sha256sums=('a602d685a6bf48b01a82e1c077a50fe3d115805865ecfe49f531d8bd20b00b0b')
arch=('i686' 'x86_64')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  ./configure --prefix=/usr || return 1
  make || return 1
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR=${pkgdir} install || return 1
  find ${pkgdir}/usr/lib -name '*.la' -exec rm {} \; || return 1
}
