From 38f30b1991befcc63186394ba731a6a4154bfb12 Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Sun, 6 Oct 2019 21:34:41 +0000 Subject: [PATCH] added community/jack2 --- ...x-undeclared-value-in-dbus-sigsegv.c.patch | 26 ++++++++ community/jack2/PKGBUILD | 64 +++++++++++++++++++ 2 files changed, 90 insertions(+) create mode 100644 community/jack2/0001-Fix-undeclared-value-in-dbus-sigsegv.c.patch create mode 100644 community/jack2/PKGBUILD diff --git a/community/jack2/0001-Fix-undeclared-value-in-dbus-sigsegv.c.patch b/community/jack2/0001-Fix-undeclared-value-in-dbus-sigsegv.c.patch new file mode 100644 index 000000000..17279398c --- /dev/null +++ b/community/jack2/0001-Fix-undeclared-value-in-dbus-sigsegv.c.patch @@ -0,0 +1,26 @@ +From 39e711fbef271064e50cc5b704f159b46a34bff7 Mon Sep 17 00:00:00 2001 +From: Kevin Mihelich +Date: Sun, 6 Oct 2019 15:30:56 -0600 +Subject: [PATCH] Fix undeclared value in dbus/sigsegv.c + +--- + dbus/sigsegv.c | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/dbus/sigsegv.c b/dbus/sigsegv.c +index de316429..75beea9d 100644 +--- a/dbus/sigsegv.c ++++ b/dbus/sigsegv.c +@@ -64,9 +64,7 @@ static void signal_segv(int signum, siginfo_t* info, void*ptr) { + const char *si_code_str; + ucontext_t *ucontext = (ucontext_t*)ptr; + +-#if defined(HAVE_UCONTEXT) && defined(HAVE_NGREG) + size_t i; +-#endif + #if defined(SIGSEGV_STACK_X86) || defined(SIGSEGV_STACK_IA64) + int f = 0; + Dl_info dlinfo; +-- +2.23.0 + diff --git a/community/jack2/PKGBUILD b/community/jack2/PKGBUILD new file mode 100644 index 000000000..a2ad8d81e --- /dev/null +++ b/community/jack2/PKGBUILD @@ -0,0 +1,64 @@ +# Maintainer: David Runge +# Contributor: Ray Rashif +# Contributor: Daniele Paolella +# Contributor: Philipp Überbacher +# Contributor: Thomas Bahn + +# ALARM: Kevin Mihelich +# - patch to fix FTBFS on ARM + +pkgname=jack2 +pkgdesc="C++ version of the JACK low-latency audio server for multi-processor machines" +pkgver=1.9.13 +pkgrel=1 +arch=('x86_64') +url="https://github.com/jackaudio/jack2" +license=('GPL2' 'LGPL2.1') +depends=('alsa-lib' 'celt' 'glibc' 'libsamplerate' 'opus') +makedepends=('libffado' 'portaudio' 'waf') +optdepends=('a2jmidid: Expose ALSA MIDI in JACK MIDI' + 'libffado: Firewire support' + 'portaudio: Portaudio support' + 'python-dbus: For jack_control' + 'realtime-privileges: Acquire realtime privileges') +provides=('jack' 'libjack.so' 'libjacknet.so' 'libjackserver.so') +conflicts=('jack') +replaces=('jack2-dbus') +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/jackaudio/${pkgname}/archive/v${pkgver}.tar.gz" + '0001-Fix-undeclared-value-in-dbus-sigsegv.c.patch') +sha512sums=('947ddd55c0dfbaa71e510c2870434ccf10acc51e416ae97d4e8db9c3c25bd1103520698879163ed7e4a13e92ec5bb3d24b949db1321795042c58e58336d7f300' + '767183a6e233bfd6a98391e3711e5c3de1f1fdb37f7b4da1d5643ed7fe8c320c459f721d4e57f9007c0cd2eaa5b6804f2cb548dc9b49715863bd0f613245c4dd') + +prepare() { + cd "${pkgname}-${pkgver}" + # copying relevant custom waf scripts and loading them specifically using + # wscript + ( + touch __init__.py + mkdir -vp tools + cp -v waflib/extras/xcode*.py tools + rm -rv waflib + sed -e "s/load('xcode'/load('xcode', tooldir='tools'/g" \ + -e "s/load('xcode6'/load('xcode6', tooldir='tools'/g" \ + -i wscript + ) + patch -p1 -i ../0001-Fix-undeclared-value-in-dbus-sigsegv.c.patch +} + +build() { + cd "${pkgname}-${pkgver}" + export PYTHONPATH="${PWD}:${PYTHONPATH}" + waf configure --prefix=/usr \ + --htmldir="/usr/share/doc/${pkgbase}/" \ + --systemd-unit \ + --classic \ + --dbus + waf build +} + +package() { + cd "${pkgname}-${pkgver}" + export PYTHONPATH="${PWD}:${PYTHONPATH}" + waf install --destdir="${pkgdir}" +} +# vim:set ts=2 sw=2 et: