blob: e7632b1f55107426334c4e69886c0d94ee51d46f (
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
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
|
# Maintainer: Christopher Arndt <aur -at- chrisarndt -dot- de>
# Contributor: George Rawlinson <grawlinson@archlinux.org>
_pkgname=dexed
pkgname=$_pkgname-git
pkgver=0.9.8.r0.gfe6efbc
pkgrel=1
pkgdesc='A software synth closely modelled on the Yamaha DX7 (git version)'
arch=(x86_64)
url='https://asb2m10.github.io/dexed'
license=(GPL-3.0-only)
groups=(pro-audio vst3-plugins clap-plugins)
depends=(
alsa-lib
gcc-libs
glibc
hicolor-icon-theme
freetype2
)
makedepends=(
git
cmake
curl
jack
libx11
libxrandr
libxinerama
libxcursor
webkit2gtk
libpng
gendesk
)
optdepends=(
'jack: backend for standalone'
'clap-host: for CLAP plugins'
'vst3-host: for VST3 plugins'
)
provides=($_pkgname)
conflicts=($_pkgname $_pkgname-clap $_pkgname-docs $_pkgname-standalone $_pkgname-vst3)
source=(
"$_pkgname::git+https://github.com/asb2m10/dexed.git"
'steinbergmedia-vst3sdk::git+https://github.com/steinbergmedia/vst3sdk.git'
'surge-synthesizer-tuning-library::git+https://github.com/surge-synthesizer/tuning-library.git'
'surge-synthesizer-surgesynthteam_tuningui::git+https://github.com/surge-synthesizer/surgesynthteam_tuningui.git'
'ODDSound-MTS-ESP::git+https://github.com/ODDSound/MTS-ESP.git'
'juce-framework-JUCE::git+https://github.com/juce-framework/JUCE.git'
'free-audio-clap-juce-extensions::git+https://github.com/free-audio/clap-juce-extensions.git'
# clap-juce-extensions
'free-audio-clap::git+https://github.com/free-audio/clap.git'
'free-audio-clap-helpers::git+https://github.com/free-audio/clap-helpers.git'
# steinbergmedia-vst3sdk
'steinbergmedia-vst3_base::git+https://github.com/steinbergmedia/vst3_base.git'
'steinbergmedia-vst3_cmake::git+https://github.com/steinbergmedia/vst3_cmake.git'
'steinbergmedia-vst3_doc::git+https://github.com/steinbergmedia/vst3_doc.git'
'steinbergmedia-vst3_pluginterfaces::git+https://github.com/steinbergmedia/vst3_pluginterfaces.git'
'steinbergmedia-vst3_public_sdk::git+https://github.com/steinbergmedia/vst3_public_sdk.git'
'steinbergmedia-vstgui::git+https://github.com/steinbergmedia/vstgui.git'
'steinbergmedia-vst3_tutorials::git+https://github.com/steinbergmedia/vst3_tutorials'
)
b2sums=('SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP')
pkgver() {
cd $_pkgname
git describe --tags --long --exclude 'NIGHTLY' | sed -e 's/^v//' -e 's/-/.r/' -e 's/-/./g'
}
prepare() {
cd $_pkgname
# prepare git submodule(s)
git submodule init
git config submodule.libs/vst3sdk.url "$srcdir/steinbergmedia-vst3sdk"
git config submodule.libs/tuning-library.url "$srcdir/surge-synthesizer-tuning-library"
git config submodule.libs/surgesynthteam_tuningui.url "$srcdir/surge-synthesizer-surgesynthteam_tuningui"
git config submodule.libs/MTS-ESP.url "$srcdir/ODDSound-MTS-ESP"
git config submodule.libs/JUCE.url "$srcdir/juce-framework-JUCE"
git config submodule.libs/clap-juce-extensions.url "$srcdir/free-audio-clap-juce-extensions"
git -c protocol.file.allow=always submodule update --init
pushd libs/clap-juce-extensions
git submodule init
git config submodule.clap-libs/clap.url "$srcdir/free-audio-clap"
git config submodule.clap-libs/clap-helpers.url "$srcdir/free-audio-clap-helpers"
git -c protocol.file.allow=always submodule update --init
popd
pushd libs/vst3sdk
git submodule init
git config submodule.base.url "$srcdir/steinbergmedia-vst3_base"
git config submodule.cmake.url "$srcdir/steinbergmedia-vst3_cmake"
git config submodule.doc.url "$srcdir/steinbergmedia-vst3_doc"
git config submodule.pluginterfaces.url "$srcdir/steinbergmedia-vst3_pluginterfaces"
git config submodule.public.sdk.url "$srcdir/steinbergmedia-vst3_public_sdk"
git config submodule.tutorials.url "$srcdir/steinbergmedia-vst3_tutorials"
git config submodule.vstgui4.url "$srcdir/steinbergmedia-vstgui"
git -c protocol.file.allow=always submodule update --init
popd
# any missing submodules? yes, probably
git submodule update --init --recursive
# generate desktop file
gendesk -f -n \
--exec Dexed \
--name Dexed \
--pkgname com.digitalsuburban.Dexed \
--pkgdesc "$pkgdesc" \
--icon "$_pkgname" \
--genericname "Virtual FM synthesizer"
# add version to program
sed -e "s/DEVBUILD/$pkgver/" -i Source/Dexed.h
# Disable copying of CLAP/VST3 plugins to ~/.{clap,vst3}
sed -e "s/COPY_PLUGIN_AFTER_BUILD TRUE/COPY_PLUGIN_AFTER_BUILD FALSE/" \
-i Source/CMakeLists.txt
}
build() {
cmake \
-S $_pkgname \
-B $_pkgname-build \
-DCMAKE_INSTALL_PREFIX='/usr'
cmake --build $_pkgname-build
}
package() {
cd $_pkgname
# desktop icon/file
install -vDm644 Resources/ui/dexedIcon.png "$pkgdir"/usr/share/icons/hicolor/512x512/apps/dexed.png
install -vDm644 com.digitalsuburban.Dexed.desktop -t "$pkgdir"/usr/share/applications
# documentation
install -vDm644 Documentation/* README.md -t "$pkgdir"/usr/share/doc/$pkgname
cd ../$_pkgname-build/Source/Dexed_artefacts
# vst3
install -Dm755 VST3/Dexed.vst3/Contents/$(uname -m)-linux/Dexed.so \
-t "$pkgdir"/usr/lib/vst3/Dexed.vst3/Contents/$(uname -m)-linux
# clap
install -vDm755 CLAP/Dexed.clap -t "$pkgdir"/usr/lib/clap
# standalone
install -vDm755 Standalone/Dexed -t "$pkgdir"/usr/bin
ln -sf Dexed "$pkgdir"/usr/bin/dexed
}
# vim:set ts=2 sw=2 et:
|