[arch-commits] Commit in zita-bls1/trunk (PKGBUILD zita-convolver.patch)

David Runge dvzrv at archlinux.org
Thu Aug 23 14:30:54 UTC 2018


    Date: Thursday, August 23, 2018 @ 14:30:54
  Author: dvzrv
Revision: 373445

upgpkg: zita-bls1 0.1.0-6

Adding xdg desktop file. Adding patch for zita-convolver >= 4.0.0.

Added:
  zita-bls1/trunk/zita-convolver.patch
Modified:
  zita-bls1/trunk/PKGBUILD

----------------------+
 PKGBUILD             |   25 +++++++++++++++++++------
 zita-convolver.patch |   12 ++++++++++++
 2 files changed, 31 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-08-23 14:01:56 UTC (rev 373444)
+++ PKGBUILD	2018-08-23 14:30:54 UTC (rev 373445)
@@ -2,7 +2,7 @@
 # Maintainer: David Runge <dave at sleepmap.de>
 pkgname=zita-bls1
 pkgver=0.1.0
-pkgrel=5
+pkgrel=6
 pkgdesc="Blumlein Shuffler implementation converting binaural stereo signals into a form suitable for reproduction on convential stereo speakers."
 arch=('x86_64')
 url="https://kokkinizita.linuxaudio.org/linuxaudio"
@@ -9,16 +9,25 @@
 license=('GPL2')
 groups=('pro-audio')
 depends=('cairo' 'clthreads' 'clxclient' 'jack' 'zita-convolver')
-makedepends=()
-source=("https://kokkinizita.linuxaudio.org/linuxaudio/downloads/${pkgname}-${pkgver}.tar.bz2")
-sha512sums=('a1b4bd7a7ca56afb627e9f095e5e1f67415a52ae316bdc6ce0eced191830f53eaf5ba3402a44fbbb97529e29a0b007d1f0f8e79c89c863207216bca1fb76435c')
+makedepends=('gendesk')
+source=("https://kokkinizita.linuxaudio.org/linuxaudio/downloads/${pkgname}-${pkgver}.tar.bz2"
+        'zita-convolver.patch')
+sha512sums=('a1b4bd7a7ca56afb627e9f095e5e1f67415a52ae316bdc6ce0eced191830f53eaf5ba3402a44fbbb97529e29a0b007d1f0f8e79c89c863207216bca1fb76435c'
+            '2f91833217428d2c0104006cb741f74abf709d21e33d4ec6d1a802d1c1f7a69a2465b73e4a44349cf7bde471538963ecc24f15a4a5de7d85978dd31539c57e81')
 
 prepare() {
-  cd "${pkgname}-${pkgver}/source"
+  cd "${pkgname}-${pkgver}"
   # strip march=native
   sed -e '/native/d' \
       -e 's/freetype-config\ --cflags/pkgconf\ --cflags\ freetype2/' \
-      -i Makefile
+      -i source/Makefile
+  patch -Np1 -i ../zita-convolver.patch
+  # XDG desktop file
+  gendesk -n \
+          --pkgname ${pkgname} \
+          --pkgdesc "${pkgdesc}" \
+          --name zita-bls1 \
+          --categories "AudioVideo;Audio"
 }
 
 build() {
@@ -30,6 +39,10 @@
   cd "${pkgname}-${pkgver}/source"
   make PREFIX=/usr DESTDIR="$pkgdir" install
 
+  # XDG desktop integration
+  install -vDm 644 "../${pkgname}.desktop" \
+    -t "${pkgdir}/usr/share/applications/"
+
   # docs
   install -t "${pkgdir}/usr/share/doc/${pkgname}" \
     -vDm 644 ../doc/html/* \

Added: zita-convolver.patch
===================================================================
--- zita-convolver.patch	                        (rev 0)
+++ zita-convolver.patch	2018-08-23 14:30:54 UTC (rev 373445)
@@ -0,0 +1,12 @@
+diff -ruN zita-bls1-0.1.0/source/shuffler.cc zita-bls1-0.1.0-b/source/shuffler.cc
+--- zita-bls1-0.1.0/source/shuffler.cc	2012-01-10 18:51:09.000000000 +0100
++++ zita-bls1-0.1.0-b/source/shuffler.cc	2018-08-23 16:27:12.523304581 +0200
+@@ -75,7 +75,7 @@
+     memset (_fft_time, 0, _iplen * sizeof (float));
+     _fft_time [_iplen / 2] = 1.0f;
+ 
+-    _convproc.configure (1, 1, _iplen, _quant, _minpt, _minpt);
++    _convproc.configure (1, 1, _iplen, _quant, _minpt, _minpt, 1.0f);
+     _convproc.impdata_create (0, 0, 1, _fft_time, 0, _iplen);
+     _convproc.start_process (abspri, policy);
+ }



More information about the arch-commits mailing list