blob: 18840f3c5de15253e6a8f55264688541c5934b6c (
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
|
# Maintainer: Christopher Arndt <aur -at- chrisarndt -dot- de>
pkgname=oxefmsynth
pkgver=1.3.5
pkgrel=1
pkgdesc="An 8-OP FM synthesizer VST plug-in"
arch=('i686' 'x86_64')
url="http://www.oxesoft.com/"
license=('GPL3')
depends=('mesa')
makedepends=('steinberg-vst36')
source=("https://github.com/oxesoft/oxefmsynth/archive/v${pkgver}.zip")
md5sums=('d89f70be3a0b7bfb9883e08b86858b57')
build() {
cd "$srcdir/$pkgname-$pkgver"
export VSTSDK_PATH="/usr/include/vst36"
export CFLAGS="$CFLAGS -std=c++11 -Wno-narrowing"
for file in Makefile.vstlinux \
src/vst/oxevst.h \
src/vst/oxevsteditor.h \
src/vst/oxevsteditor.cpp \
src/vst/vsthostinterface.cpp; do
sed -i -e 's|public.sdk/source/vst2.x/||g' "$file"
done
sed -i -e 's| "VERSION_STR| " VERSION_STR|' src/synth/constants.h
sed -i -e 's|BMP_PATH| BMP_PATH |' src/toolkits/xlibtoolkit.cpp
make -f Makefile.vstlinux LIBS="-lX11 -lGL -lpthread -ldl"
}
package() {
cd "$srcdir/$pkgname-$pkgver"
if [[ $CARCH == 'i686' ]]; then
_arch=32
elif [[ $CARCH == 'x86_64' ]]; then
_arch=64
fi
install -D oxevst${_arch}.so "$pkgdir/usr/lib/vst/oxevst${_arch}.so"
}
|