summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7a580f000e3072f5b164f8410d8b1a9df6c570c4 (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
# Maintainer: David Runge <dave@sleepmap.de>
_name=ssr
pkgname=ssr-osc-git
pkgver=0.4.2.r498.g31dd677
pkgrel=1
pkgdesc="A tool for real-time spatial audio reproduction (with OSC interface)"
arch=('x86_64')
url="https://github.com/dvzrv/ssr"
conflicts=('ssr')
provides=("ssr=${pkgver}")
license=('GPL3')
depends=('ecasound' 'fftw' 'glu' 'qt5-base')
makedepends=('asio' 'gendesk' 'git' 'help2man' 'qt5-tools')
source=("git+https://github.com/dvzrv/${_name}#branch=networking-with-osc")
sha512sums=('SKIP')

prepare(){
  cd "${_name}"
  autoreconf -vfi
  gendesk -n \
          --pkgname ${_name} \
          --name ${_name} \
          --pkgdesc "${pkgdesc}" \
          --genericname "Spatial Audio Renderer" \
          --categories "AudioVideo;Audio"
  gendesk -n \
          --pkgname ${_name}-aap \
          --name ${_name}-aap \
          --pkgdesc "${_name} (Ambisonics Amplitude Panner): ${pkgdesc}" \
          --genericname "Spatial Audio Renderer" \
          --categories "AudioVideo;Audio"
  gendesk -n \
          --pkgname ${_name}-binaural \
          --name ${_name}-binaural \
          --pkgdesc "${_name} (Binaural): ${pkgdesc}" \
          --genericname "Spatial Audio Renderer" \
          --categories "AudioVideo;Audio"
  gendesk -n \
          --pkgname ${_name}-brs \
          --name ${_name}-brs \
          --pkgdesc "${_name} (Binaural Room Synthesis): ${pkgdesc}" \
          --genericname "Spatial Audio Renderer" \
          --categories "AudioVideo;Audio"
  gendesk -n \
          --pkgname ${_name}-dca \
          --name ${_name}-dca \
          --pkgdesc "${_name} (Distance-coded Ambisonics): ${pkgdesc}" \
          --genericname "Spatial Audio Renderer" \
          --categories "AudioVideo;Audio"
  gendesk -n \
          --pkgname ${_name}-generic \
          --name ${_name}-generic \
          --pkgdesc "${_name} (Generic): ${pkgdesc}" \
          --genericname "Spatial Audio Renderer" \
          --categories "AudioVideo;Audio"
  gendesk -n \
          --pkgname ${_name}-vbap \
          --name ${_name}-vbap \
          --pkgdesc "${_name} (Vector Based Amplitude Panning): ${pkgdesc}" \
          --genericname "Spatial Audio Renderer" \
          --categories "AudioVideo;Audio"
  gendesk -n \
          --pkgname ${_name}-wfs \
          --name ${_name}-wfs \
          --pkgdesc "${_name} (Wave Field Synthesis): ${pkgdesc}" \
          --genericname "Spatial Audio Renderer" \
          --categories "AudioVideo;Audio"
}

pkgver() {
  cd "${_name}"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//g'
}

build() {
  cd "${_name}"
  ./configure --prefix=/usr \
              --disable-vrpn
  make
}

package() {
  cd "${_name}"
  make DESTDIR="$pkgdir" install
  install -vDm 644 ${_name}{,-{aap,binaural,brs,dca,generic,vbap,wfs}}.desktop \
    -t "${pkgdir}/usr/share/applications"
}