yochananmarqos

bespokesynth-git

Oct 5th, 2021 (edited)
391
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.68 KB | None | 0 0
  1. pkgname=bespokesynth-git
  2. pkgdesc="Software modular synth with controllers support, scripting and VST"
  3. pkgver=1.0.0.r217.g1b821f3
  4. pkgrel=1
  5. arch=('x86_64')
  6. url="https://www.bespokesynth.com"
  7. license=('GPL3')
  8. depends=('alsa-lib' 'curl' 'freetype2' 'gtk3' 'jack' 'libglvnd' 'libusb' 'python'
  9.          'webkit2gtk' 'zenity')
  10. makedepends=('cmake' 'git')
  11. provides=("${pkgname%-git}")
  12. conflicts=("${pkgname%-git}")
  13. source=('git+https://github.com/BespokeSynth/BespokeSynth.git'
  14.         'git+https://github.com/juce-framework/JUCE.git'
  15.         'git+https://github.com/pybind/pybind11.git'
  16.         'git+https://github.com/surge-synthesizer/tuning-library.git'
  17.         'git+https://github.com/ODDSound/MTS-ESP.git'
  18.         'git+https://github.com/open-source-parsers/jsoncpp.git')
  19. sha256sums=('SKIP'
  20.             'SKIP'
  21.             'SKIP'
  22.             'SKIP'
  23.             'SKIP'
  24.             'SKIP')
  25.  
  26. pkgver() {
  27.   cd "$srcdir/BespokeSynth"
  28.   git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
  29. }
  30.  
  31. prepare() {
  32.   cd "$srcdir/BespokeSynth"
  33.  
  34.   for submodule in JUCE pybind11 tuning-library; do
  35.     git submodule init "libs/${submodule}"
  36.     git config submodule."${submodule}".url "$srcdir/${submodule}"
  37.   done
  38.  
  39.   git submodule init libs/oddsound-mts/MTS-ESP
  40.   git config submodule.MTS-ESP.url "$srcdir/MTS-ESP"
  41.  
  42.   git submodule init libs/json/jsoncpp
  43.   git config submodule.jsoncpp.url "$srcdir/jsoncpp"
  44.  
  45.   git submodule update
  46. }
  47.  
  48. build() {
  49.   cmake -B build -S BespokeSynth \
  50.     -DCMAKE_BUILD_TYPE='None' \
  51.     -DCMAKE_INSTALL_PREFIX='/usr' \
  52.     -Wno-dev
  53.   cmake --build build --parallel 4
  54.   make -C build
  55. }
  56.  
  57. package() {
  58.   make -C build DESTDIR="$pkgdir" install
  59. }
Add Comment
Please, Sign In to add comment