# Maintainer: theo - nl2stk
# Thanks to: fuzzix

pkgname=saasound
pkgver=3.2
pkgrel=1
pkgdesc="Phillips SAA 1099 sound chip emulator"
url="http://simonowen.com/sam/saasound/"
license=('custom')
source=(http://simonowen.com/sam/saasound/SAASound-3.2.tar.gz)
md5sums=('6a1e45f3f8958be6cfe88872cec3763f')

build() {
  cd "$srcdir/SAASound-$pkgver"
  ./configure --prefix=/usr --host=i386-pc-linux-gnu --build=i386-pc-linux-gnu --disable-static
  make || return 1
  make DESTDIR="${pkgdir}" install
  install -D -m644 LICENCE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"

  # Remove the libtool stuff
  find $pkgdir -name '*.la' -delete
}
