File PKGBUILD of Package bespokesynth
pkgname="bespokesynth"
pkgdesc="Software modular DAW."
pkgver=1.3.0
pkgrel=0
arch=(x86_64)
url="https://github.com/BespokeSynth/BespokeSynth"
license=(GPL3)
depends=(gcc-libs glibc hicolor-icon-theme libglvnd libpng python zlib)
makedepends=('abletonlink' 'alsa-lib' 'git' 'libx11' 'libxinerama' 'tuning-library' 'freetype2' 'cmake' 'libxcursor' 'mesa'
'libusb' 'libxext' 'libxrandr' 'libxcomposite' 'libusb' 'jack2' 'python' 'jsoncpp' 'pybind11' 'gzip')
optdepends=('python-jedi: code completion in Bespoke'
'kdialog: native file dialogs (KDE)'
'zenity: native file dialogs (GTK)'
'yt-dlp: youtube downloader for sampleplayer')
provides=(bespokesynth)
conflicts=(bespokesynth)
source=("${pkgname}-${pkgver}.tar.gz")
md5sums=('SKIP')
sha512sums=('SKIP')
prepare() {
cd "${pkgname}-${pkgver}"
patch -p1 -i /usr/src/packages/SOURCES/JUCE7-Use-old-JUCE-VST2-interface.patch -d libs/JUCE
cp /usr/src/packages/SOURCES/juce_VSTInterface.h libs/JUCE/modules/juce_audio_processors/format_types/
}
build() {
cd "${pkgname}-${pkgver}"
cmake -Bcmake-build \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DBESPOKE_SYSTEM_ABLETONLINK=ON \
-DBESPOKE_SYSTEM_PYBIND11=ON \
-DBESPOKE_SYSTEM_JSONCPP=ON \
-DBESPOKE_SYSTEM_TUNING_LIBRARY=ON \
-DBESPOKE_VST2_SDK_LOCATION=/usr/local/include \
-DCMAKE_INSTALL_PREFIX=/usr
cmake --build cmake-build --config Release -j`nproc`
}
package() {
cd "${pkgname}-${pkgver}"
cmake --install cmake-build --prefix "${pkgdir}"/usr
}