summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0d1b9dbe0be3e63f49138b532f75c3d58870ae60 (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
# Maintainer: Christopher Arndt <aur -at- chrisarndt -dot- de>

pkgname=oxefmsynth
pkgver=1.3.4
pkgrel=1
pkgdesc="An 8-OP FM synthesizer VST plug-in"
arch=('i686' 'x86_64')
url="http://www.oxesoft.com/"
license=('GPL3')
depends=('libx11')
source=("https://github.com/oxesoft/oxefmsynth/archive/v${pkgver}.zip"
        'http://www.steinberg.net/sdk_downloads/vstsdk360_22_11_2013_build_100.zip')
md5sums=('44841c42b5a3d934f27d3cec73b20b57'
         '1ac422ebb4aa2e86061278412c347b55')

build() {
  cd "$srcdir/$pkgname-$pkgver"

  export VSTSDK_PATH="$srcdir/VST3\\ SDK"
  # See: http://stackoverflow.com/questions/10789012/g-cdecl-calling-convention-with-steinberg-vst-sdk
  export CFLAGS='-D__cdecl=""'
  make -f Makefile.vstlinux LIBS="-lX11 -lGL"
}

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"
}