summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bac7a055c1753dff142128d1982715f89a8883aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# Maintainer: Christopher Arndt <aur -at- chrisarndt -dot- de>

_pkgname=drops
pkgname="$_pkgname-git"
pkgver=1.0.beta.2.r0.g185cf4b
pkgrel=1
pkgdesc='A sample player instrument LV2/VST2 plugin and stand-alone JACK program (git version)'
arch=('x86_64')
url='https://github.com/clearly-broken-software/drops'
license=('GPL3')
depends=(gcc-libs libgl libglvnd)
makedepends=(git jack2 libsndfile)
groups=(lv2-plugins pro-audio vst-plugins)
provides=($_pkgname "$_pkgname=${pkgver//.r*/}")
conflicts=($_pkgname)
source=("${_pkgname}::git+https://github.com/clearly-broken-software/${_pkgname}.git"
        'dpf::git+https://github.com/DISTRHO/DPF.git'
        'nanosvg::git+https://github.com/memononen/nanosvg.git'
        'sfizz::git+https://github.com/sfztools/sfizz.git'
        'abseil-cpp::git+https://github.com/abseil/abseil-cpp.git'
        'vst3_base::git+https://github.com/steinbergmedia/vst3_base.git'
        'vst3_pluginterfaces::git+https://github.com/steinbergmedia/vst3_pluginterfaces.git'
        'vst3_public_sdk::git+https://github.com/steinbergmedia/vst3_public_sdk.git'
        'vstgui4::git+https://github.com/sfztools/vstgui.git'
        'dr_libs::git+https://github.com/mackron/dr_libs.git'
        'stb_vorbis::git+https://github.com/sfztools/stb_vorbis.git'
        'libaiff::git+https://github.com/sfztools/libaiff.git'
        'sfzt_auwrapper::git+https://github.com/sfztools/sfzt_auwrapper.git'
        'filesystem::git+https://github.com/gulrak/filesystem.git'
        'simde::git+https://github.com/simd-everywhere/simde.git'
        )
md5sums=('SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP')

pkgver() {
  cd $_pkgname

  ( set -o pipefail
    git describe --long --tags 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' ||
    echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
  )
}

prepare() {
  cd $_pkgname

  git submodule init
  git config submodule.sfizz.url "$srcdir"/sfizz
  git config submodule.dpf.url "$srcdir"/dpf
  git config submodule.external.url "$srcdir"/nanosvg
  git submodule update

  cd sfizz
  git submodule init
  git config submodule.external/abseil-cpp.url "$srcdir"/abseil-cpp
  git config submodule.external/filesystem.url "$srcdir"/filesystem
  git config submodule.external/simde.url "$srcdir"/simde
  git config submodule.external/st_audiofile/thirdparty/dr_libs.url "$srcdir"/dr_libs
  git config submodule.external/st_audiofile/thirdparty/libaiff.url "$srcdir"/libaiff
  git config submodule.external/st_audiofile/thirdparty/stb_vorbis.url "$srcdir"/stb_vorbis
  git config submodule.vst/external/sfzt_auwrapper.url "$srcdir"/sfzt_auwrapper
  git config submodule.vst/external/VST_SDK/VST3_SDK/base.url "$srcdir"/vst3_base
  git config submodule.vst/external/VST_SDK/VST3_SDK/pluginterfaces.url "$srcdir"/vst3_pluginterfaces
  git config submodule.vst/external/VST_SDK/VST3_SDK/public.sdk.url "$srcdir"/vst3_public_sdk
  git config submodule.vst/external/VST_SDK/VST3_SDK/vstgui4.url "$srcdir"/vstgui4
  git submodule update
}

build() {
  cd $_pkgname
  make
}

package() {
  depends+=(libjack.so libsndfile.so)
  cd $_pkgname
  install -s -vDm 755 bin/drops -t "$pkgdir"/usr/bin
  install -vDm 644 bin/drops.lv2/*.ttl -t "$pkgdir"/usr/lib/lv2/drops.lv2
  install -vDm 755 bin/drops.lv2/*.so -t "$pkgdir"/usr/lib/lv2/drops.lv2
  install -vDm 755 bin/drops-vst.so -t "$pkgdir"/usr/lib/vst
}