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

# source: james
TARBALL=fluidsynth_$PKGVER.tar.gz
MD5SUM=02e59e3689b6121c1c9e920f5d05c699
SRC_URL=https://github.com/FluidSynth/fluidsynth/archive/refs/tags/v$PKGVER.tar.gz
BUNDLE=

SLACKREQ='alsa-lib libjack2 libreadline libsndfile' # 
SLACKDESC="fluidsynth: fluidsynth $PKGVER (MIDI synthesizer)"'
fluidsynth:  
fluidsynth: Fluidsynth is a real-time midi synthesizer based on the soundfont2 
fluidsynth: specifications. It can be used to render MIDI input or MIDI files 
fluidsynth: to audio. The MIDI events are read from a MIDI device. The sound 
fluidsynth: is rendered in real-time to the sound output device.  
fluidsynth: 
fluidsynth: https://www.fluidsynth.org/
fluidsynth: https://github.com/FluidSynth/fluidsynth/
fluidsynth: 
fluidsynth:
'

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/fluidsynth* &&
	cp ../pkg/ladspa.h /usr/include &&
	cmake . -DCMAKE_INSTALL_PREFIX=/usr \
            -DCMAKE_BUILD_TYPE=Release \
            -Denable-ladspa=ON \
			-DLIB_SUFFIX="64" &&
	make $MAKEFLAGS &&
	make install &&
	pkg_build_slackdesc &&
	rm -f /usr/include/ladspa.h
}
