summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: edbb5591d10bd51242b432202bb632cfbe9acfe6 (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
# Maintainer: Saiki81 <saikia81 at hotmail dot com>
# Contributor: Christopher Arndt <aur -at- chrisarndt -dot- de>
# adapted from package: pianoteq-stage-trial-bin
# adapted from pkgbuild creator: CrocoDuck <crocoduck dot oducks at gmail dot com>

pkgname=pianoteq-stage5
pkgver=5.8.1
pkgrel=2
pkgdesc="Virtual piano instrument using physical modelling synthesis. Both standalone and plugin versions."
arch=('i686' 'x86_64')
url="https://www.pianoteq.com/pianoteq5"
license=('custom')
depends=('alsa-lib' 'freetype2' 'libxext')
makedepends=('gendesk')
optdepends=('jack: JACK audio and MIDI support')
provides=("pianoteq5")
conflicts=("pianoteq5")
source=("local://pianoteq_stage_linux_v${pkgver//./}.7z"
        'https://www.pianoteq.com/images/logo/pianoteq_icon_128.png')
sha256sums=('ae0100a22432e73c2a7df8890b89239f04d3adc5a6d97440af9517e8e75187af'
            '94ee64cf6688a49d74f0bf70d811e7466abac103feeab17496a89f828afcc6d3')

_pianoteq_type="Pianoteq 5 STAGE"
# Define architecture specific file directory:
if [[ "$CARCH" == i686 ]]; then
  archdir=i386
else
  archdir=amd64
fi

build() {
  cd "$srcdir/$_pianoteq_type/"

  # Generate Desktop Entry:
  gendesk -f -n \
    --pkgname "$pkgname" \
    --pkgdesc "$pkgdesc" \
    --name="${_pianoteq_type}" \
    --exec='pianoteq5' \
    --categories 'Audio;Sequencer;Midi;AudioVideoEditing;Music;AudioVideo;'
}

package() {
  cd "$srcdir/$_pianoteq_type/"

  # Install binaries:
  install -Dm 755 "$archdir/${_pianoteq_type}" "$pkgdir/usr/bin/pianoteq5"
  install -Dm 755 "$archdir/${_pianoteq_type}.so" "$pkgdir/usr/lib/vst/pianoteq5.so"

  for i in "$archdir/${_pianoteq_type}.lv2/"*; do
    install -D "$i" "$pkgdir/usr/lib/lv2/Pianoteq 5.lv2/${i##*/}"
  done

  # Install desktop launcher:
  install -Dm 644 "$srcdir/pianoteq_icon_128.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"
  install -Dm 644 "$pkgname.desktop" "$pkgdir/usr/share/applications/pianoteq5.desktop"

  # Install the license:
  install -d "$pkgdir/usr/share/licenses/${pkgname}"
  install -m 644 *Licence* "$pkgdir/usr/share/licenses/${pkgname}/"

  # Install the documentation:
  install -D README_LINUX.txt "$pkgdir/usr/share/doc/${pkgname}/README_LINUX.txt"
  for i in "Documentation/"*; do
      install -D "$i" "$pkgdir/usr/share/doc/${pkgname}/${i##*/}"
  done
}