blob: d4c28c34dc1b5e9044a7bba6d3566e26af7ea213 (
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
|
# Maintainer: OSAMC <https://github.com/osam-cologne/archlinux-proaudio>
# Contributor: Christopher Arndt <aur -at- chrisarndt -dot- de>
pkgname=string-machine
_plugin_uri="http://jpcima.sdf1.org/lv2/$pkgname"
pkgver=0.1.0
pkgrel=3
pkgdesc='A virtual-analog string ensemble synthesizer LV2 and VST2 plugin'
arch=(x86_64 aarch64)
url='https://github.com/jpcima/string-machine'
license=(Boost)
depends=(gcc-libs libx11 cairo)
makedepends=(boost mesa)
checkdepends=(kxstudio-lv2-extensions lv2lint)
groups=(pro-audio lv2-plugins vst-plugins)
_dpf_commit='05d91f5852f4bccfd2bce1d4d2e2b3036e29db03'
source=("https://github.com/jpcima/string-machine/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz"
"${pkgname}-Makefile.base.mk::https://raw.githubusercontent.com/DISTRHO/DPF/$_dpf_commit/Makefile.base.mk")
sha256sums=('5b0d2eb2185199c1de6c7c35700a2caafbc6ba564529a2e7614c15c3aceacc6f'
'ef890c65422c8c73ffea7687a45317689378ff2b0f3ccadd497ca1cdc77e08a4')
prepare() {
cd $pkgname-$pkgver
# Update DPF base makefile to fix arm64 build
cp -f "$srcdir"/$pkgname-Makefile.base.mk dpf/Makefile.base.mk
}
build() {
cd $pkgname-$pkgver
make
}
# generates too many errors, so ignore check failures
check() {
cd $pkgname-$pkgver
lv2lint -Mpack -s lv2_generate_ttl -t "Plugin Author Email" \
-I "bin/$pkgname.lv2/" "$_plugin_uri" ||
echo "Ignoring lv2lint errors (known to fail)."
}
package() {
cd $pkgname-$pkgver
# LV2 bundle
install -Dm755 bin/$pkgname.lv2/*.so -t \
"$pkgdir"/usr/lib/lv2/$pkgname.lv2
install -Dm644 bin/$pkgname.lv2/*.ttl -t \
"$pkgdir"/usr/lib/lv2/$pkgname.lv2
# VST shared library
install -Dm755 bin/$pkgname-vst.so -t "$pkgdir"/usr/lib/vst
}
|