Skip to content

Instantly share code, notes, and snippets.

@madskjeldgaard
Last active February 20, 2023 04:46
Show Gist options
  • Save madskjeldgaard/21743f62cbb6f38b6e83c18cffe67ae3 to your computer and use it in GitHub Desktop.
Save madskjeldgaard/21743f62cbb6f38b6e83c18cffe67ae3 to your computer and use it in GitHub Desktop.
Arch linux PKGBUILD for installing the Aalto Sparta Plugins
# Maintainer: Mads Kjeldgaard <mail@madskjeldgaard.dk>
pkgname=sparta-plugins
pkgver=2020_10_09_v1.4.2
pkgrel=1
pkgdesc='AALTO vst plugins for Spatial Audio Real-time Applications'
arch=('x86_64')
url="http://research.spa.aalto.fi/projects/sparta_vsts/"
license=('GPL')
depends=('netcdf' 'hdf5' 'lapack' 'webkit2gtk' 'netcdf-fortran' 'libcurl-gnutls')
provides=()
source=("http://research.spa.aalto.fi/projects/sparta_vsts/download/Linux_SPARTA_$pkgver.zip")
md5sums=('SKIP')
package() {
cd "$srcdir/Linux_SPARTA_$pkgver"
# Custom mkl lib needed for the installation
install -Dm755 "libsaf_mkl_custom.so" "$pkgdir/usr/lib/libsaf_mkl_custom.so"
# Install compass plugins
install -Dm755 "libcompass_binaural.so" "$pkgdir/usr/lib/vst/libcompass_binaural.so"
install -Dm755 "libcompass_decoder.so" "$pkgdir/usr/lib/vst/libcompass_decoder.so"
install -Dm755 "libcompass_sidechain.so" "$pkgdir/usr/lib/vst/libcompass_sidechain.so"
install -Dm755 "libcompass_upmixer.so" "$pkgdir/usr/lib/vst/libcompass_upmixer.so"
# Install cropac
install -Dm755 "libcropac_binaural.so" "$pkgdir/usr/lib/vst/libcropac_binaural.so"
# Install sparta plugins
install -Dm755 "libsparta_ambiBIN.so" "$pkgdir/usr/lib/vst/libsparta_ambiBIN.so"
install -Dm755 "libsparta_ambiDEC.so" "$pkgdir/usr/lib/vst/libsparta_ambiDEC.so"
install -Dm755 "libsparta_ambiDRC.so" "$pkgdir/usr/lib/vst/libsparta_ambiDRC.so"
install -Dm755 "libsparta_ambiENC.so" "$pkgdir/usr/lib/vst/libsparta_ambiENC.so"
install -Dm755 "libsparta_array2sh.so" "$pkgdir/usr/lib/vst/libsparta_array2sh.so"
install -Dm755 "libsparta_beamformer.so" "$pkgdir/usr/lib/vst/libsparta_beamformer.so"
# Install HOSIRR
install -Dm755 "libHOSIRR.so" "$pkgdir/usr/lib/vst/libHOSIRR.so"
# Install HODIRAC
install -Dm755 "libhodirac_binaural.so" "$pkgdir/usr/lib/vst/libhodirac_binaural.so"
install -Dm755 "libhodirac_decoder.so" "$pkgdir/usr/lib/vst/libhodirac_decoder.so"
# Install SPARTA
install -Dm755 "libsparta_binauraliser.so" "$pkgdir/usr/lib/vst/libsparta_binauraliser.so"
install -Dm755 "libsparta_decorrelator.so" "$pkgdir/usr/lib/vst/libsparta_decorrelator.so"
install -Dm755 "libsparta_matrixconv.so" "$pkgdir/usr/lib/vst/libsparta_matrixconv.so"
install -Dm755 "libsparta_multiconv.so" "$pkgdir/usr/lib/vst/libsparta_multiconv.so"
install -Dm755 "libsparta_panner.so" "$pkgdir/usr/lib/vst/libsparta_panner.so"
install -Dm755 "libsparta_pitchShifter.so" "$pkgdir/usr/lib/vst/libsparta_pitchShifter.so"
install -Dm755 "libsparta_rotator.so" "$pkgdir/usr/lib/vst/libsparta_rotator.so"
}
@madskjeldgaard
Copy link
Author

To install this version, download it and move to the folder containing this pkgbuild file.
run makepkg -si to install it.

To satisfy the dependencies for the plugins that use SOFA you need to downgrade to earlier versions of two libraries

downgrade netcdf
Set this to 4.7.3

downgrade hdf5
set this to 1.10.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment