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

_pkgname=mephisto.lv2
pkgname="${_pkgname}-git"
pkgver=0.13.67.r255.ec63c59
pkgrel=1
pkgdesc="A Just-in-Time FAUST compiler embedded in an LV2 plugin (git version)"
arch=('x86_64')
url="https://open-music-kontrollers.ch/lv2/mephisto/"
license=('Artistic2.0')
groups=('lv2-plugins' 'pro-audio')
depends=('fontconfig' 'glew' 'glibc' 'libevdev' 'libglvnd' 'libvterm' 'libx11'
         'ttf-fira-code' 'ttf-fira-sans')
makedepends=('faust' 'git' 'glu' 'lv2' 'meson')
checkdepends=('lv2lint')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("${_pkgname}::git+https://github.com/OpenMusicKontrollers/mephisto.lv2")
sha512sums=('SKIP')

pkgver() {
  cd "${srcdir}/${_pkgname}"
  local ver="$(cat VERSION)"
  echo "$ver.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}

build() {
  cd "${srcdir}/${_pkgname}"
  meson --prefix=/usr -Duse-fontconfig=enabled build
  ninja -C build
}

check() {
  cd "${srcdir}/${_pkgname}"
  _plugin_names=('audio_1x1' 'audio_2x2' 'audio_4x4' 'audio_8x8' 'cv_1x1'
  'cv_2x2' 'cv_4x4' 'cv_8x8')
  for _plugin in ${_plugin_names[@]}; do
    lv2lint -s 'pugl*' -Mpack -I "build/" \
      "http://open-music-kontrollers.ch/lv2/mephisto#${_plugin}"
  done
}

package() {
  depends+=('libfaust.so')

  cd "${srcdir}/${_pkgname}"
  DESTDIR="${pkgdir}" ninja -C build install
  install -vDm 644 {ChangeLog,README.md} \
    -t "${pkgdir}/usr/share/doc/${pkgname}"
}