archrelease: copy trunk to extra-x86_64
[arch-packages.git] / jack2 / trunk / PKGBUILD
blobefd8470b0b242c7a08a0394d352ed2749b3cb79c
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>
7 pkgbase=jack2
8 pkgname=(jack2 jack2-dbus jack2-docs)
9 pkgdesc="The JACK low-latency audio server"
10 pkgver=1.9.21
11 pkgrel=3
12 arch=(x86_64)
13 url="https://github.com/jackaudio/jack2"
14 license=(GPL2)
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
17 options=(debug !lto)
18 source=(git+https://github.com/jackaudio/$pkgbase.git#tag=v$pkgver?signed
19         bdb_5.3.patch)
20 validpgpkeys=('62B11043D2F6EB6672D93103CDBAA37ABC74FBA0') # falkTX <falktx@falktx.com>
21 sha512sums=('SKIP'
22             '3d2842899de395e48ef6d4307905fc3633eaac02f4987032594084573991450566b592e30069c19dca4a5cb0b07e1962bbfc7b9cd7c8a174990190147481823f')
24 _pick() {
25   local p="$1" f d; shift
26   for f; do
27     d="$srcdir/$p/${f#$pkgdir/}"
28     mkdir -p "$(dirname "$d")"
29     mv "$f" "$d"
30     rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
31   done
34 prepare() {
35   cd "${pkgbase}"
36   # remove custom waflib, as we are using system provided waf
37   (
38     touch __init__.py
39     rm -rv waflib
40   )
41   patch -Np1 -i ../bdb_5.3.patch  
44 build() {
45   cd $pkgbase
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 \
52                 --autostart=none \
53                 --doxygen=yes \
54                 --systemd-unit \
55                 --classic \
56                 --dbus
57   waf build
60 package_jack2() {
61   license+=(LGPL2.1)
62   depends=(db5.3 gcc-libs glibc opus libasound.so libdbus-1.so libsamplerate.so
63   libsystemd.so )
64   optdepends=(
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'
71   )
72   conflicts=(jack)
73   provides=(jack libjack.so libjacknet.so libjackserver.so)
75   cd "${pkgbase}"
76   export PYTHONPATH="$PWD:$PYTHONPATH"
77   waf install --destdir="$pkgdir"
79   ( cd "$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
84   )
87 package_jack2-dbus() {
88   pkgdesc+=" (dbus integration)"
89   depends=(gcc-libs glibc jack2 libdbus-1.so libexpat.so libjackserver.so
90   python-dbus)
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: