1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: Ray Rashif <schiv@archlinux.org>
3 # Contributor: Daniele Paolella <danielepaolella@email.it>
4 # Contributor: Philipp Überbacher <hollunder at gmx dot at>
5 # Contributor: Thomas Bahn <thomas-bahn at gmx dot net>
8 pkgname=(jack2 jack2-dbus jack2-docs)
9 pkgdesc="The JACK low-latency audio server"
13 url="https://github.com/jackaudio/jack2"
15 makedepends=(alsa-lib dbus doxygen expat git libffado libsamplerate opus systemd waf)
16 # jack breaks when built with LTO: https://github.com/jackaudio/jack2/issues/485
18 source=(git+https://github.com/jackaudio/$pkgbase.git#tag=v$pkgver?signed)
19 validpgpkeys=('62B11043D2F6EB6672D93103CDBAA37ABC74FBA0') # falkTX <falktx@falktx.com>
23 local p="$1" f d; shift
25 d="$srcdir/$p/${f#$pkgdir/}"
26 mkdir -p "$(dirname "$d")"
28 rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
34 # remove custom waflib, as we are using system provided waf
43 export LINKFLAGS="$LDFLAGS"
44 export PYTHONPATH="$PWD:$PYTHONPATH"
45 waf configure --prefix=/usr \
46 --htmldir=/usr/share/doc/$pkgbase/html \
57 depends=(db gcc-libs glibc opus libasound.so libdbus-1.so libsamplerate.so
60 'a2jmidid: for ALSA MIDI to JACK MIDI bridging'
61 'libffado: for firewire support using FFADO'
62 'jack-example-tools: for official JACK example-clients and tools'
63 'jack2-dbus: for dbus integration'
64 'jack2-docs: for developer documentation'
65 'realtime-privileges: for realtime privileges'
68 provides=(jack libjack.so libjacknet.so libjackserver.so)
71 export PYTHONPATH="$PWD:$PYTHONPATH"
72 waf install --destdir="$pkgdir"
76 _pick jack2-dbus usr/bin/jack{dbus,_control}
77 _pick jack2-dbus usr/share/dbus-1/services/*
78 _pick jack2-docs usr/share/doc/$pkgbase/html
82 package_jack2-dbus() {
83 pkgdesc+=" (dbus integration)"
84 depends=(gcc-libs glibc jack2 libdbus-1.so libexpat.so libjackserver.so
87 mv -v jack2-dbus/* "$pkgdir"
90 package_jack2-docs() {
91 pkgdesc+=" (documentation)"
93 mv -v jack2-docs/* "$pkgdir"
96 # vim:set ts=2 sw=2 et: