blob: 0154778498b489e8cec24b5ee9c3d208dcd7e08b (
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
|
# Maintainer: LekKit <github.com/LekKit>
# Contributor: Christopher Arndt <aur -at -chrisarndt -dot- de>
_pkgname=neural-amp-modeler-lv2
pkgname=$_pkgname-git
pkgver=0.1.5.r21.f14faca
pkgrel=1
pkgdesc='Neural Amp Modeler (NAM) LV2 plugin (git version)'
arch=(aarch64 armv7h i686 pentium4 riscv64 riscv x86_64)
url='https://github.com/mikeoliphant/neural-amp-modeler-lv2'
license=(GPL-3.0-only)
depends=(gcc-libs glibc)
makedepends=(git cmake)
provides=($_pkgname)
conflicts=($_pkgname)
source=("$_pkgname::git+https://github.com/mikeoliphant/$_pkgname.git"
'lv2::git+https://github.com/lv2/lv2.git'
'NeuralAudio::git+https://github.com/mikeoliphant/NeuralAudio.git'
'NeuralAmpModelerCore::git+https://github.com/mikeoliphant/NeuralAmpModelerCore.git'
'RTNeural::git+https://github.com/mikeoliphant/RTNeural.git'
'RTNeural-NAM::git+https://github.com/mikeoliphant/RTNeural-NAM.git'
)
sha256sums=('SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP')
pkgver() {
cd $_pkgname
( set -o pipefail
git describe --long --tags 2>/dev/null | sed '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
for submodule in lv2 NeuralAudio; do
git submodule init deps/$submodule
git submodule set-url deps/$submodule "$srcdir"/$submodule
git -c protocol.file.allow=always submodule update deps/$submodule
done
cd deps/NeuralAudio
for submodule in NeuralAmpModelerCore RTNeural RTNeural-NAM; do
git submodule init deps/$submodule
git submodule set-url deps/$submodule "$srcdir"/$submodule
git -c protocol.file.allow=always submodule update deps/$submodule
done
}
build() {
cmake -B $_pkgname-build -S $_pkgname \
-DCMAKE_BUILD_TYPE=Release
cmake --build $_pkgname-build --config Release -j $(nproc --ignore=1)
}
package() {
install -vDm 644 $_pkgname-build/neural_amp_modeler.lv2/*.ttl \
-t "$pkgdir"/usr/lib/lv2/neural_amp_modeler.lv2
install -vDm 755 $_pkgname-build/neural_amp_modeler.lv2/*.so \
-t "$pkgdir"/usr/lib/lv2/neural_amp_modeler.lv2
install -vDm 644 $_pkgname/README.md \
-t "$pkgdir"/usr/share/doc/$pkgname
}
|