summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4e198f499615fa07bc2f2ce6ac3a5951f8eaad7f (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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# Maintainer: Gimmeapill <gimmeapill at gmail dot com>
# Contributor: Christopher Arndt <aur at chrisarndt dot de>

_pkgname=guitarix.vst
pkgname=$_pkgname-git
pkgver=0.3.r7.gb2c2e3d
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=(
  gcc-libs
  glib2
  glibc
  glibmm
  graphite
  libsigc++
)
makedepends=(
  boost
  curl
  eigen
  fftw
  freetype2
  git
  gperf
  intltool
  lilv
  libsndfile
  sassc
  waf
  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'
        'RTNeural::git+https://github.com/jatinchowdhury18/RTNeural.git')
sha256sums=('SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP')

pkgver() {
  cd $_pkgname
  (
    set -o pipefail
    git describe --long --tag --match 'v*' | sed -r 's/^v//;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
  git submodule init trunk/src/RTNeural/RTNeural
  git submodule set-url trunk/src/RTNeural/RTNeural "$srcdir"/RTNeural
  git -c protocol.file.allow=always submodule update trunk/src/RTNeural/RTNeural
  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() {
  depends+=(
    libcurl.so
    libfftw3f.so
    libfreetype.so
    libgio-2.0.so
    libglib-2.0.so
    libglibmm-2.4.so
    libgobject-2.0.so
    liblilv-0.so
    libsigc-2.0.so
    libsndfile.so
  )
  cd $_pkgname
  make JUCE_VST3DESTDIR="$pkgdir"/usr/lib/vst3 install
}