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

# source: james
# release tarball
#PKGVER=
#TARBALL=
#MD5SUM=
#SRC_URL=
#BUNDLE=

# git-master tarball
PKGVER=0.4.17.2023.04 # release is six years behind
MD5SUM=6d4f78117478b88cab22f020ba874aee
hash=7559ebea07eb289ca90a40f72ec2b9d3844b33c3
hash7=${hash#???????}; hash7=${hash%$hash7}
TARBALL=swh-plugins-$PKGVER-$hash7.tar.gz
SRC_URL=https://github.com/swh/ladspa/archive/$hash.tar.gz


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
}


