summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8cc1807cde6b490eea50d80275281b238062a94c (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
# Maintainer: Hanspeter Portner <dev at open-music-kontrollers dot ch>
_pkgname=synthpod
pkgname="${_pkgname}-git"
pkgver=0.1.6171
pkgrel=1
pkgdesc="Lightweight non-linear plugin host"
arch=('i686' 'x86_64')
url="http://open-music-kontrollers.ch/lv2/synthpod/"
license=('Artistic2.0')
groups=('lv2-plugins' 'lv2-hosts')
depends=('lilv' 'jack' 'libgl' 'zita-alsa-pcmi' 'xcb-util-wm' 'glew' 'libevdev' 'cairo')
makedepends=('git' 'meson' 'ninja' 'lv2-git')
optdepends=('gtk2' 'gtk3' 'qt4' 'qt5-base' 'cairo')
provides=("$_pkgname")
conflicts=("$_pkgname")
replaces=()
backup=()
options=()
source=("$_pkgname::git+https://git.open-music-kontrollers.ch/lv2/synthpod")
noextract=()
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/$_pkgname"

  cat VERSION
}

build() {
  cd "$srcdir/$_pkgname"

  rm -rf build

  #
  # BUILD HERE
  #
  meson build \
    --prefix='/usr' \
    --libdir='lib'

  cd build
  meson configure -D b_lto=true
  meson configure -D use-alsa=true
  meson configure -D use-dummy=true
  meson configure -D use-jack=true
  meson configure -D use-x11=true
  #meson configure -D use-gtk2=true
  #meson configure -D use-gtk3=true
  #meson configure -D use-qt4=true
  #meson configure -D use-qt5=true
  ninja
}

package() {
  cd "$srcdir/$_pkgname/build"

  DESTDIR="$pkgdir/" ninja install
}

# vim:set ts=2 sw=2 et: