summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 68b0fc4fdf7569fdc61286a02c754d0913adfeb6 (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
# Maintainer: Gimmeapill <gimmeapill at gmail dot com>
# Contributor: Christopher Arndt <aur at chrisarndt dot de>

_pkgname=guitarix.vst
pkgname=$_pkgname-git
pkgver=v0.2.r0.g821480e
pkgrel=1
pkgdesc='A versatile (guitar) amplifier VST3 plugin (git version)'
arch=(x86_64)
url='https://github.com/brummer10/guitarix.vst'
license=(GPL-3.0-or-later)
groups=(vst3-plugins pro-audio)
depends=(alsa-lib curl gcc-libs glib2 glibc libsigc++ libsndfile lilv fftw freetype2 glibmm avahi)
makedepends=(git boost eigen gperf intltool lv2 waf sassc pkgconfig webkit2gtk)
optdepends=(
  'vst3-host: for VST3 plugins'
  'gxplugins.lv2: for Guitarix LV2 plugins'
)
provides=($_pkgname)
conflicts=($_pkgname)
source=("$_pkgname::git+https://github.com/brummer10/guitarix.vst"
        'guitarix::git+https://github.com/brummer10/guitarix.git'
        'NAM::git+https://github.com/sdatkinson/NeuralAmpModelerCore.git'
        'eigen::git+https://gitlab.com/libeigen/eigen.git')
sha256sums=('SKIP' 'SKIP' 'SKIP' 'SKIP')

pkgver() {
  cd $_pkgname
  (
    set -o pipefail
    git describe --long --tag --match 'v*' | sed -r 's/([^-]*-g)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

prepare() {
  cd $_pkgname
  git submodule init guitarix
  git submodule set-url guitarix "$srcdir"/guitarix
  git -c protocol.file.allow=always submodule update guitarix
  cd guitarix
  git submodule init trunk/src/NAM/NeuralAmpModelerCore
  git submodule set-url trunk/src/NAM/NeuralAmpModelerCore "$srcdir"/NAM
  git -c protocol.file.allow=always submodule update trunk/src/NAM/NeuralAmpModelerCore
  cd trunk/src/NAM/NeuralAmpModelerCore
  git submodule init Dependencies/eigen
  git submodule set-url Dependencies/eigen "$srcdir"/eigen
  git -c protocol.file.allow=always submodule update Dependencies/eigen
}

build() {
  cd $_pkgname
  make
}

package() {
  cd $_pkgname
  make JUCE_VST3DESTDIR="$pkgdir"/usr/lib/vst3 install
}