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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
|
# Maintainer: OSAMC <https://github.com/osam-cologne/archlinux-proaudio>
# Contributor: Phil A. <flying-sheep@web.de>
# Contributor: David Runge <dave@sleepmap.de>
# Contributor: Adrain Sinclair <adrian at adrusi dot com>
# Contributor: Miroslav Koškár <http://mkoskar.com/>
# Contributor: Florian Hülsmann <fh@cbix.de>
_name=Rack
pkgname=vcvrack
pkgver=2.5.2
pkgrel=2
pkgdesc='Open-source Eurorack modular synthesizer simulator'
url='https://vcvrack.com/'
license=(custom GPL-3.0-or-later)
arch=(aarch64 x86_64)
install=.install
_plugin_name=Fundamental
_plugin_ver=2.6.0
_plugin_pkg=$pkgname-${_plugin_name,,}
depends=(glfw jansson)
makedepends=(alsa-lib cmake curl gendesk git glew jack jq libarchive libpulse openssl rtmidi simde
speexdsp zstd)
provides=("$_plugin_pkg=$_plugin_ver")
conflicts=($_plugin_pkg)
groups=(pro-audio)
source=(
"$_name::git+https://github.com/VCVRack/$_name#tag=v$pkgver"
'filesystem.git::git+https://github.com/gulrak/filesystem'
'fuzzysearchdatabase.git::git+https://bitbucket.org/j_norberg/fuzzysearchdatabase'
'nanosvg.git::git+https://github.com/memononen/nanosvg'
'nanovg.git::git+https://github.com/VCVRack/nanovg'
'osdialog.git::git+https://github.com/AndrewBelt/osdialog'
'oui-blendish.git::git+https://github.com/VCVRack/oui-blendish'
'pffft.git::git+https://bitbucket.org/jpommier/pffft'
'rtaudio.git::git+https://github.com/VCVRack/rtaudio'
'tinyexpr.git::git+https://github.com/codeplea/tinyexpr'
"$_plugin_pkg-$_plugin_ver.tar.gz::https://github.com/VCVRack/$_plugin_name/archive/v$_plugin_ver.tar.gz"
'plugins.patch'
'wmclass.patch'
'vcvrack.sh'
'profile.sh'
'trademark.eml'
)
sha256sums=('54e544541d35bced4a60e278a1bde3f821b332b97d48bdb8e26c21a6d48184ae'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'1e3662c1f5cf57e484e7f605028fbe032e1eab541b73e10453d36df400e68ae0'
'3ad0ea63ce2d5bf62b27e7b51a6d098040435636939d36a584a9b609578a9c9e'
'f1abd73a4de8a97328ff0111fb59ab9f0bde42b2b8f0d2a2ee7fb964e47dbe5e'
'21ac35c6ad4e5a29c32939b17baaf7ac1936077eda2214e28675eefcf2021db8'
'e1da6ccf04bae3a2101151fec7ddd32e48ff92b0a1146b559fd3221c778d521f'
'1159629aa90abb7c972c0f630d55d018b88a6b3bc3ff0bb9466cc06982f38641')
prepare() {
cd $_name
# setup submodules
for _module in filesystem fuzzysearchdatabase nanosvg nanovg osdialog oui-blendish pffft rtaudio tinyexpr; do
git submodule init dep/$_module
git config submodule.dep/$_module.url "$srcdir/$_module.git"
done
git -c protocol.file.allow=always submodule update
# add target to only build included dependencies
echo 'includes: $(nanovg) $(nanosvg) $(osdialog) $(oui-blendish) $(fuzzysearchdatabase) $(ghcfilesystem) $(pffft) $(rtaudio) $(tinyexpr)' >> dep/Makefile
# support building plugins and loading system-wide plugins
patch -p1 -i ../plugins.patch
# set proper window manager class
patch -p1 -i ../wmclass.patch
gendesk -f -n \
--pkgname $pkgname \
--pkgdesc "$pkgdesc" \
--name "VCV Rack" \
--categories "AudioVideo;Audio"
}
build() {
cd $_name
_ldflags="-Wl,--whole-archive \
dep/lib/librtaudio.a \
-Wl,--no-whole-archive \
-shared -ldl \
$(pkg-config --libs glew \
glfw3 jansson libcurl openssl \
libarchive libzstd speexdsp \
samplerate rtmidi \
alsa jack libpulse libpulse-simple)"
VERSION=$pkgver make -C dep includes
VERSION=$pkgver make LDFLAGS+="$_ldflags" STANDALONE_LDFLAGS="$LDFLAGS"
cd ../$_plugin_name-$_plugin_ver
VERSION=$_plugin_ver RACK_DIR=../$_name \
LDFLAGS+=" $(pkg-config --libs samplerate)" make dist
}
package() {
depends+=(libcurl.so libGLEW.so libarchive.so libcrypto.so librtmidi.so
libsamplerate.so libspeexdsp.so zenity)
cd $_name
install -vDm755 Rack -t "$pkgdir"/usr/lib/$pkgname
install -vDm755 libRack.so -t "$pkgdir"/usr/lib
install -vDm755 "$srcdir"/vcvrack.sh "$pkgdir"/usr/bin/$pkgname
install -vDm644 template.vcv Core.json cacert.pem -t "$pkgdir"/usr/lib/$pkgname
# resources
cp -dr --preserve=mode res -t "$pkgdir"/usr/lib/$pkgname
# headers (required for plugins)
for _path in {app,dsp,engine,plugin,simd,ui,widget,window}; do
install -vDm644 include/$_path/* \
-t "$pkgdir"/usr/include/$pkgname/$_path
done
install -vDm644 include/*.hpp -t "$pkgdir"/usr/include/$pkgname
install -vDm644 dep/include/*.h -t "$pkgdir"/usr/include/$pkgname/dep
# Makefile snippets required for plugins
install -vDm644 {arch,compile,dep,plugin}.mk -t "$pkgdir"/usr/share/$pkgname
# xdg desktop integration
install -vDm644 $pkgname.desktop -t "$pkgdir"/usr/share/applications/
install -vDm644 res/icon.png "$pkgdir"/usr/share/pixmaps/$pkgname.png
# licenses
install -vDm644 LICENSE.md "$srcdir"/trademark.eml -t "$pkgdir"/usr/share/licenses/$pkgname
# Fundamental plugin
cd ../$_plugin_name-$_plugin_ver
install -d "$pkgdir"/usr/lib/$pkgname/plugins
cp -a dist/$_plugin_name -t "$pkgdir"/usr/lib/$pkgname/plugins
# RACK_DIR environment variable
install -vDm644 "$srcdir"/profile.sh "$pkgdir"/etc/profile.d/$pkgname.sh
}
|