summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bb865a485cd2044f1bc2324fa47b9338395fdcfc (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
# Maintainer: Christopher Arndt <aur -at- chrisarndt -dot- de>
# Contributor: <skrylar@UFO>

_pkgname=ingen
pkgname=$_pkgname-git
pkgver=0.5.1.r3029.85ad8074
pkgrel=1
pkgdesc='A modular plugin host for JACK and LV2 (git version)'
arch=('x86_64' 'x86_64_v3')
url='https://drobilla.net/software/ingen.html'
license=(GPL)
depends=('gtkmm' 'python-rdflib' 'cython')
makedepends=('meson' 'boost' 'ganv' 'git' 'jack' 'lilv' 'lv2' 'portaudio' 'raul' 'suil' 'serd' 'sord' 'sratom' 'python-markdown' 'python-pygments' 'webkit2gtk')
provides=($_pkgname lv2-host)
conflicts=($_pkgname)
source=("${_pkgname}::git+https://gitlab.com/drobilla/ingen.git")
sha256sums=('SKIP')


pkgver() {
  cd $_pkgname
  local ver=$(grep -E "^\s+version: '[0-9]+\.[0-9]+\.[0-9]+'" meson.build | cut -d "'" -f 2)
  echo "$ver.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}

build() {
  if [[ -d $pkgname-builddir ]]; then
    arch-meson --reconfigure $pkgname-builddir $_pkgname
  else
    arch-meson --buildtype=release $pkgname-builddir $_pkgname
  fi

  meson compile -C $pkgname-builddir
}

#check() {
#  meson test -C $pkgname-builddir
#}

package() {
  depends+=(libganv-1.so libjack.so liblilv-0.so libportaudio.so libserd-0.so libsigc-2.0.so libsord-0.so libsratom-0.so libsuil-0.so )
  meson install --destdir="$pkgdir" -C $pkgname-builddir
  cd $_pkgname
  install -v -D -m 644 AUTHORS README.md THANKS -t "$pkgdir"/usr/share/doc/$pkgname
}

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