### this file is sourced not run
PKGVER=0.4.17
PKGBUILD=1
PKGARCH=x86_64

# source: james
TARBALL=swh-plugins-$PKGVER.tar.gz
MD5SUM=8c036a21c13215841ad53199b4a92b1a
SRC_URL=https://github.com/swh/ladspa/archive/v$PKGVER.tar.gz
BUNDLE=

SLACKREQ='libfftw3f'
SLACKDESC="libswh-plugins-ladspa: libswh-plugins-ladspa $PKGVER(SWH plugins)  
libswh-plugins-ladspa:  
libswh-plugins-ladspa: LADSPA plugins from Steve Harris. Contains amp, fast 
libswh-plugins-ladspa: overdrive, overdrive (with colourisation), comb filter, 
libswh-plugins-ladspa: waveshaper, ringmod, divider, diode, decliper, pitch 
libswh-plugins-ladspa: scaler, 16 band equaliser, sinus wavewrapper, hermes 
libswh-plugins-ladspa: filter, chorus, flanger, decimater, oscillator, gverb, 
libswh-plugins-ladspa: phasers, harmonic generators, surround encoders and 
libswh-plugins-ladspa: more.  
libswh-plugins-ladspa: 
libswh-plugins-ladspa:
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/ladspa*
	cp ../pkg/ladspa.h . &&
	
	sed -i -e "s|plugindir = @prefix@/lib/ladspa|plugindir = @prefix@/$LIBDIR/ladspa|" \
		Makefile.am && # Makefile.in

	autoreconf -fi &&	
	pkg_build_autoconf &&
	pkg_build_slackdesc
}


