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

# source: james
TARBALL=swh-plugins_0.4.15+1.orig.tar.gz
MD5SUM=b476379b1327dae73b3c2627c18942d2
SRC_URL=http://ftp.de.debian.org/debian/pool/main/s/swh-plugins/$TARBALL
BUNDLE=

SLACKREQ='libfftw3f'
SLACKDESC='libswh-plugins-ladspa: libswh-plugins-ladspa 0.4.15debian7 (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
### prepare
pkg_prepare() {
	pkg_prepare_default &&
	cp $CHROOT_DIR/tmp/pkg/ladspa.h usr/include &&	
	cd tmp/swh* &&
	tar -xf $CHROOT_DIR/tmp/pkg/swh-plugins_0.4.15+1-7.debian.tar.gz &&
	for p in $(cat debian/patches/series); do
		patch -Np1 -i debian/patches/$p
	done
}

### default pkg_package
### build
pkg_build() {
	cd /tmp/swh*

	sed -i -e "s|plugindir = @prefix@/lib/ladspa|plugindir = @prefix@/$LIBDIR/ladspa|" \
		Makefile.in Makefile.am &&
	autoreconf -fi &&	
	pkg_build_autoconf &&
	pkg_build_slackdesc &&
	rm -f usr/include/ladspa.h
}


