blob: 11686ff07d6f086e6444a8b66b2bef146bd6cbd9 (
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
|
# Maintainer: Christopher Arndt <aur -at- chrisarndt -dot- de>
# Maintainer: napaalm <nap@napaalm.xyz>
# Contributor: spider-mario <spidermario@free.fr>
_name="Pianoteq 8"
pkgname=pianoteq
pkgver=8.4.3
pkgrel=2
pkgdesc="Physical modelling piano instrument as a standalone program, VST2 and LV2 plugin"
arch=(aarch64 armv7h x86_64)
url='https://www.modartt.com/pianoteq'
license=(LicenseRef-EULA)
groups=(lv2-plugins pro-audio vst-plugins)
depends=(alsa-lib freetype2 gcc-libs glibc libglvnd ttf-font)
makedepends=(gendesk)
optdepends=(
'jack: JACK support for stand-alone application'
'lv2-host: for loading the LV2 plugin'
'vst-host: for loading the VST2 plugin'
)
conflicts=(pianoteq-stage pianoteq-standard-trial-bin)
# The source package must be downloaded manually.
# This can be done by going to the link here:
# https://www.modartt.com/download?file=pianoteq_linux_v810.7z
source=("local://pianoteq_linux_v${pkgver//./}.7z"
'https://www.pianoteq.com/images/logo/pianoteq_icon_128.png')
sha256sums=('ef6795f9dde3c116494ace88e1ed39e59ad1fddbe787001a33adde644400b4e8'
'94ee64cf6688a49d74f0bf70d811e7466abac103feeab17496a89f828afcc6d3')
prepare() {
gendesk -f -n \
--pkgname="$pkgname" \
--pkgdesc="$pkgdesc" \
--name="$_name" \
--exec="${pkgname}${pkgver%%.*}" \
--categories='Audio;AudioVideo;AudioVideoEditing;Midi;Music;Sequencer;'
}
package() {
depends+=(libfreetype.so libasound.so)
cd "$_name"
# Define architecture specific directory
# (i686 is no longer supported):
if [[ "$CARCH" == x86_64 ]]; then
_archdir=x86-64bit
elif [[ "$CARCH" == armv7h ]]; then
_archdir=arm-32bit
elif [[ "$CARCH" == aarch64 ]]; then
_archdir=arm-64bit
fi
# Install the program files:
install -Dm 755 "$_archdir/$_name" -t "$pkgdir"/usr/bin
ln -sf "$_name" "$pkgdir"/usr/bin/${pkgname}${pkgver%%.*}
# Install the LV2 plugin bundle:
install -Dm644 "$_archdir/$_name.lv2"/*.ttl -t "$pkgdir/usr/lib/lv2/$_name.lv2"
install -Dm755 "$_archdir/$_name.lv2"/${_name/ /_}.so -t "$pkgdir/usr/lib/lv2/$_name.lv2"
# Install the VST2 plugin (same binary as the one in the LV2 bundle):
install -dm755 "$pkgdir"/usr/lib/vst
ln -sf "../lv2/$_name.lv2/${_name/ /_}.so" "$pkgdir/usr/lib/vst/$_name.so"
# Install desktop launcher:
install -Dm 644 "$srcdir"/pianoteq_icon_128.png "$pkgdir"/usr/share/pixmaps/$pkgname.png
install -Dm 644 "$srcdir"/$pkgname.desktop -t "$pkgdir"/usr/share/applications/
# Install the license:
install -Dm644 Licence* -t "$pkgdir"/usr/share/licenses/$pkgname
# Install the documentation:
install -Dm644 README_LINUX.txt Documentation/* -t "$pkgdir"/usr/share/doc/$pkgname
}
|