blob: a1df6109d5892ea7e2914f274a98e790c385320e (
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
|
# Maintainer: Popolon <popolon@popolon.org>
# Contributor: Fabio 'Lolix' Loli <lolix@disroot.org>
# Contributor: Miroslav Koškár
pkgname=vcvrack-git
_branchname=v1
pkgver=1.1.6.r18.ga5fc5891
pkgrel=9
pkgdesc="Open-source virtual Eurorack DAW"
url="https://github.com/VCVRack/Rack"
license=(BSD)
arch=(i686 x86_64 armv7h armv8 riscv32 riscv64)
depends=(glew glfw-x11 jansson libsamplerate curl libzip rtmidi rtaudio gtk2 gtk3 jq)
makedepends=(git unzip wget cmake)
provides=(vcvrack)
conflicts=(vcvrack)
source=(
"${pkgname%-git}::git+https://github.com/VCVRack/Rack.git#branch=${_branchname}"
"vcvrack.desktop"
"vcvrack.sh"
)
sha256sums=('SKIP'
'6da49236dff903c6d84f74c4fe753125c5884b6119cadbc735b2bd652df39f07'
'6299d2de5b6c71db5c9e736095bbf141e4f0bc6eb90b4791aa384b3accd59bbd')
pkgver() {
cd "${pkgname%-git}"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "${pkgname%-git}"
git submodule update --init --recursive
}
build() {
cd "${pkgname%-git}"
make dep
local tag flags
tag=$(git describe --tags --abbrev=0)
make VERSION="${tag##v}"
}
package() {
cd "${pkgname%-git}"
install -D -m755 "$srcdir/vcvrack.sh" "$pkgdir/usr/bin/vcvrack"
if [ ${_branchname} == "v2" ]; then
install -D -m644 -t "$pkgdir/usr/lib" "libRack.so"
fi
install -D -m644 -t "$pkgdir/usr/share/licenses/${pkgname%-git}" LICENSE*
install -D -m755 -t "$pkgdir/opt/${pkgname%-git}" Rack
install -d "$pkgdir/opt/${pkgname%-git}/plugins"
install -D -m644 -t "$pkgdir/opt/${pkgname%-git}" Core.json template.vcv
# headers (required for plugins)
for _path in {app,dsp,engine,plugin,simd,ui,widget}; do
install -vDm 644 "include/$_path/"* \
-t "$pkgdir/usr/include/${pkgname%-git}/$_path/"
done
install -vDm 644 include/*.{h,hpp} -t "$pkgdir/usr/include/${pkgname%-git}/"
install -vDm 644 dep/include/*.h -t "$pkgdir/usr/include/${pkgname%-git}/dep"
# Makefile snippets required for plugins
install -vDm 644 {arch,compile,dep,plugin}.mk -t "$pkgdir/usr/share/${pkgname%-git}"
install -vD -m644 "$srcdir/vcvrack.desktop" -t "$pkgdir/usr/share/applications/"
cp -dr --preserve=mode -t "$pkgdir/opt/${pkgname%-git}" res
}
|