[arch-commits] Commit in ssr/trunk (PKGBUILD)

David Runge dvzrv at archlinux.org
Sun Jan 6 15:26:14 UTC 2019


    Date: Sunday, January 6, 2019 @ 15:26:14
  Author: dvzrv
Revision: 420718

upgpkg: ssr 0.5.0-2

Moving asio and ecasound to makedepends. Simplifying XDG desktop generation with gendesk.

Modified:
  ssr/trunk/PKGBUILD

----------+
 PKGBUILD |   78 ++++++++++++++++++-------------------------------------------
 1 file changed, 24 insertions(+), 54 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-01-06 14:25:36 UTC (rev 420717)
+++ PKGBUILD	2019-01-06 15:26:14 UTC (rev 420718)
@@ -1,74 +1,45 @@
 # Maintainer: David Runge <dave at sleepmap.de>
 pkgname=ssr
 pkgver=0.5.0
-pkgrel=1
+pkgrel=2
 pkgdesc="A tool for real-time spatial audio reproduction"
 arch=('x86_64')
 url="http://spatialaudio.net/ssr/"
 license=('GPL3')
 groups=('pro-audio')
-depends=('asio' 'ecasound' 'fftw' 'glu' 'qt5-base')
-makedepends=('gendesk' 'help2man' 'qt5-tools')
+depends=('fftw' 'glu' 'jack' 'qt5-base')
+makedepends=('asio' 'ecasound' 'gendesk' 'help2man' 'qt5-tools')
 source=("https://github.com/SoundScapeRenderer/${pkgname}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz")
 sha512sums=('89234be15d4607278a7e91935300bd60aec3a4b21f006a54059ccbdba2e3eac48e2869f58172dd4569d188aad45b04f14516c49b157f44c04482656abd103dfe')
 _name="SoundScape Renderer"
 
 prepare() {
+  declare -A descriptions=(
+    ["${pkgname}"]="${_name}: ${pkgdesc}"
+    ["${pkgname}-aap"]="${_name} (Ambisonics Amplitude Panner): ${pkgdesc}"
+    ["${pkgname}-binaural"]="${_name} (Binaural): ${pkgdesc}"
+    ["${pkgname}-brs"]="${_name} (Binaural Room Synthesis): ${pkgdesc}"
+    ["${pkgname}-dca"]="${_name} (Distance-coded Ambisonics): ${pkgdesc}"
+    ["${pkgname}-generic"]="${_name} (Generic): ${pkgdesc}"
+    ["${pkgname}-vbap"]="${_name} (Vector Based Amplitude Panning): ${pkgdesc}"
+    ["${pkgname}-wfs"]="${_name} (Wave Field Synthesis): ${pkgdesc}"
+  )
   cd "$pkgname-$pkgver"
   autoreconf -vfi
-  gendesk -n \
-          --pkgname ${pkgname} \
-          --name ${pkgname} \
-          --pkgdesc "${pkgdesc}" \
-          --genericname "Spatial Audio Renderer" \
-          --categories "AudioVideo;Audio"
-  gendesk -n \
-          --pkgname ${pkgname}-aap \
-          --name ${pkgname}-aap \
-          --pkgdesc "${_name} (Ambisonics Amplitude Panner): ${pkgdesc}" \
-          --genericname "Spatial Audio Renderer" \
-          --categories "AudioVideo;Audio"
-  gendesk -n \
-          --pkgname ${pkgname}-binaural \
-          --name ${pkgname}-binaural \
-          --pkgdesc "${_name} (Binaural): ${pkgdesc}" \
-          --genericname "Spatial Audio Renderer" \
-          --categories "AudioVideo;Audio"
-  gendesk -n \
-          --pkgname ${pkgname}-brs \
-          --name ${pkgname}-brs \
-          --pkgdesc "${_name} (Binaural Room Synthesis): ${pkgdesc}" \
-          --genericname "Spatial Audio Renderer" \
-          --categories "AudioVideo;Audio"
-  gendesk -n \
-          --pkgname ${pkgname}-dca \
-          --name ${pkgname}-dca \
-          --pkgdesc "${_name} (Distance-coded Ambisonics): ${pkgdesc}" \
-          --genericname "Spatial Audio Renderer" \
-          --categories "AudioVideo;Audio"
-  gendesk -n \
-          --pkgname ${pkgname}-generic \
-          --name ${pkgname}-generic \
-          --pkgdesc "${_name} (Generic): ${pkgdesc}" \
-          --genericname "Spatial Audio Renderer" \
-          --categories "AudioVideo;Audio"
-  gendesk -n \
-          --pkgname ${pkgname}-vbap \
-          --name ${pkgname}-vbap \
-          --pkgdesc "${_name} (Vector Based Amplitude Panning): ${pkgdesc}" \
-          --genericname "Spatial Audio Renderer" \
-          --categories "AudioVideo;Audio"
-  gendesk -n \
-          --pkgname ${pkgname}-wfs \
-          --name ${pkgname}-wfs \
-          --pkgdesc "${_name} (Wave Field Synthesis): ${pkgdesc}" \
-          --genericname "Spatial Audio Renderer" \
-          --categories "AudioVideo;Audio"
+  for name in "${!descriptions[@]}"; do
+    gendesk -n \
+            --pkgname ${name} \
+            --name ${name} \
+            --pkgdesc "${descriptions[$name]}" \
+            --genericname "Spatial Audio Renderer" \
+            --categories "AudioVideo;Audio"
+  done
 }
 
 build() {
   cd "$pkgname-$pkgver"
-  ./configure --prefix=/usr --disable-vrpn
+  ./configure --prefix=/usr \
+              --disable-vrpn
   make
 }
 
@@ -80,6 +51,5 @@
 package() {
   cd "$pkgname-$pkgver"
   make DESTDIR="$pkgdir/" install
-  install -vDm 644 ${pkgname}{,-{aap,binaural,brs,dca,generic,vbap,wfs}}.desktop \
-    -t "${pkgdir}/usr/share/applications"
+  install -vDm 644 *.desktop -t "${pkgdir}/usr/share/applications"
 }


More information about the arch-commits mailing list