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 db5.3 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
20 validpgpkeys=('62B11043D2F6EB6672D93103CDBAA37ABC74FBA0') # falkTX <falktx@falktx.com>
22 '3d2842899de395e48ef6d4307905fc3633eaac02f4987032594084573991450566b592e30069c19dca4a5cb0b07e1962bbfc7b9cd7c8a174990190147481823f')
25 local p="$1" f d; shift
27 d="$srcdir/$p/${f#$pkgdir/}"
28 mkdir -p "$(dirname "$d")"
30 rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
36 # remove custom waflib, as we are using system provided waf
41 patch -Np1 -i ../bdb_5.3.patch
46 export CXXFLAGS="$CXXFLAGS -I/usr/include/db5.3"
47 export LDFLAGS="$LDFLAGS -ldb-5.3"
48 export LINKFLAGS="$LDFLAGS"
49 export PYTHONPATH="$PWD:$PYTHONPATH"
50 waf configure --prefix=/usr \
51 --htmldir=/usr/share/doc/$pkgbase/html \
62 depends=(db5.3 gcc-libs glibc opus libasound.so libdbus-1.so libsamplerate.so
65 'a2jmidid: for ALSA MIDI to JACK MIDI bridging'
66 'libffado: for firewire support using FFADO'
67 'jack-example-tools: for official JACK example-clients and tools'
68 'jack2-dbus: for dbus integration'
69 'jack2-docs: for developer documentation'
70 'realtime-privileges: for realtime privileges'
73 provides=(jack libjack.so libjacknet.so libjackserver.so)
76 export PYTHONPATH="$PWD:$PYTHONPATH"
77 waf install --destdir="$pkgdir"
81 _pick jack2-dbus usr/bin/jack{dbus,_control}
82 _pick jack2-dbus usr/share/dbus-1/services/*
83 _pick jack2-docs usr/share/doc/$pkgbase/html
87 package_jack2-dbus() {
88 pkgdesc+=" (dbus integration)"
89 depends=(gcc-libs glibc jack2 libdbus-1.so libexpat.so libjackserver.so
92 mv -v jack2-dbus/* "$pkgdir"
95 package_jack2-docs() {
96 pkgdesc+=" (documentation)"
98 mv -v jack2-docs/* "$pkgdir"
101 # vim:set ts=2 sw=2 et: