blob: 7da337e6202f06990fdb2ed04180c971525ae228 (
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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
|
# Maintainer: tippfehlr <tippfehlr@tippfehlr.eu>
# Contributor: David Runge <dvzrv@archlinux.org>
_name=helm
pkgbase=helm-synth
pkgname=(helm-synth helm-synth-{common,lv2,standalone,vst})
pkgver=0.9.0
pkgrel=11
pkgdesc="Free polyphonic synth with lots of modulation"
arch=('x86_64')
url="https://tytel.org/helm/"
license=('GPL-3.0-only')
makedepends=(
alsa-lib
freetype2
hicolor-icon-theme
jack
libxcursor
libglvnd
libx11
libxext
libxinerama
lv2
)
source=(
https://github.com/mtytel/$_name/archive/v$pkgver/$_name-v$pkgver.tar.gz
$pkgname-0.9.0-gcc91.patch
$pkgname-0.9.0-fix-compile-error.patch
$pkgname-0.9.0-rename_helm-synth.patch
)
sha512sums=('241c6bf3aec422e9ccaf7c7113eec7e30a11baadd30fe8f05f0abfac9c41d0c8a9fb284f0cae49bcaf0d3d08aa952737f6ff3eb7d48c2b2e22c60932738aeaa4'
'4c12575c6a58c6a03644b9c7d560e3a794fa3575ac10eb9301ca911a58a86eb5c721f0e4c8c1c5bfcf81b6efba25ed7bdba2a12fe68ec49eb18581067cec06bb'
'9e5c3334254be54bc74446016ef7b56ba4724a1bd2f38c9ab432453e67ac8835c979ac7182f71f863c6719166937002f085099a55bc9f764376e5fe511fd5abb'
'99df61242d6fd5629440c72210c541f3ce0e711190ab2472ebc066a9044d79499c657c9554b39570867a95e061da3c32ceefce3706e84fc6b4cb540e59289607')
b2sums=('1b6811f32cf36a1c1f954cc071cd64f3dca656ee0bd420c01d0be3db516210a92adc3694ac49731cf2d7cf057a9eccf2c2dcefc14d24cf8582a3eb69efe1d0e1'
'54c3c5baf336ee1c2739922be6040d69309db94394967be335103fe325c96afe69f05fbdde0516c153bc47763fc3686c9e0461c6b12dbec59476c85a003e4397'
'cc859b929c3945ef3ee5fc0c4fc31d3f8a8d5670b9e51fc4e9f1d925785a7ae19cef656de1d954f637e029e60e4d609cba7d2794d1611e4b461119a15f7a548a'
'c95fb6c4080a47bf2a137d986c62f0510b021bafd89b1c9d2f8662f9ad9f086b7d5f7cb08a3dd65ef43f6bc119695ebbda132acc33972454a0d82a05578d48f5')
_pick() {
local p="$1" f d
shift
for f; do
d="$srcdir/$p/${f#$pkgdir/}"
mkdir -p "$(dirname "$d")"
mv "$f" "$d"
rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
done
}
prepare() {
# gcc > 9.1 fixes:
# https://github.com/mtytel/helm/pull/233
patch -Np1 -d $_name-$pkgver -i ../$pkgname-0.9.0-gcc91.patch
# https://github.com/Jikstra/helm/pull/1
patch -Np1 -d $_name-$pkgver -i ../$pkgname-0.9.0-fix-compile-error.patch
# rename to helm-synth as (kubernetes) helm will be in the repos
patch -Np1 -d $_name-$pkgver -i ../$pkgname-0.9.0-rename_helm-synth.patch
# prevent from linking against libcurl.so for no reason
sed -e 's/libcurl //g' -i $_name-$pkgver/{builds/linux/{LV2,VST},standalone/builds/linux}/Makefile*
}
build() {
local make_options=(
CONFIG=Release
PREFIX=/usr
standalone
lv2
vst
-C $_name-$pkgver
)
make "${make_options[@]}"
}
package_helm-synth() {
local make_options=(
DESTDIR="$pkgdir/"
VSTDIR="$pkgdir/usr/lib/vst"
install_lv2
install_standalone
install_vst
-C $_name-$pkgver
)
depends=(
$pkgbase-lv2=$pkgver
$pkgbase-standalone=$pkgver
$pkgbase-vst=$pkgver
)
make "${make_options[@]}"
(
cd "$pkgdir"
# make sure that find-libdeps is able to find dependencies:
# https://gitlab.archlinux.org/archlinux/devtools/-/issues/102
find usr/lib/lv2 -type f -iname "*.so" -exec chmod +x {} \;
_pick $pkgbase-common usr/share/doc
_pick $pkgbase-common usr/share/$pkgbase
_pick $pkgbase-lv2 usr/lib/lv2
_pick $pkgbase-standalone usr/bin
_pick $pkgbase-standalone usr/share/{applications,icons,man}
_pick $pkgbase-vst usr/lib/vst
)
}
package_helm-synth-common() {
pkgdesc+=" - common files"
mv -v $pkgname/* "$pkgdir"
}
package_helm-synth-lv2() {
pkgdesc+=" - LV2 plugin"
groups=(
pro-audio
lv2-plugins
)
depends+=(
alsa-lib libasound.so
freetype2 libfreetype.so
gcc-libs
glibc
helm-synth-common
libglvnd
libx11
libxext
libxinerama
lv2-host
)
mv -v $pkgname/* "$pkgdir"
}
package_helm-synth-standalone() {
pkgdesc+=" - standalone"
groups=(
pro-audio
)
depends=(
alsa-lib libasound.so
freetype2 libfreetype.so
gcc-libs
glibc
helm-synth-common
hicolor-icon-theme
libglvnd
libx11
libxext
libxinerama
)
mv -v $pkgname/* "$pkgdir"
}
package_helm-synth-vst() {
pkgdesc+=" - VST plugin"
groups=(
pro-audio
vst-plugins
)
depends=(
alsa-lib libasound.so
freetype2 libfreetype.so
gcc-libs
glibc
helm-synth-common
libglvnd
libx11
libxext
libxinerama
vst-host
)
mv -v $pkgname/* "$pkgdir"
}
|