OCaml 4.14.0 rebuild
[arch-packages.git] / jack2 / trunk / PKGBUILD
blob2c4a56e59d4f5f3e75286da5b0e5d4e640c5858f
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=1
12 arch=(x86_64)
13 url="https://github.com/jackaudio/jack2"
14 license=(GPL2)
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
17 options=(debug !lto)
18 source=(git+https://github.com/jackaudio/$pkgbase.git#tag=v$pkgver?signed)
19 validpgpkeys=('62B11043D2F6EB6672D93103CDBAA37ABC74FBA0') # falkTX <falktx@falktx.com>
20 sha512sums=('SKIP')
22 _pick() {
23   local p="$1" f d; shift
24   for f; do
25     d="$srcdir/$p/${f#$pkgdir/}"
26     mkdir -p "$(dirname "$d")"
27     mv "$f" "$d"
28     rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
29   done
32 prepare() {
33   cd "${pkgbase}"
34   # remove custom waflib, as we are using system provided waf
35   (
36     touch __init__.py
37     rm -rv waflib
38   )
41 build() {
42   cd $pkgbase
43   export LINKFLAGS="$LDFLAGS"
44   export PYTHONPATH="$PWD:$PYTHONPATH"
45   waf configure --prefix=/usr \
46                 --htmldir=/usr/share/doc/$pkgbase/html \
47                 --autostart=none \
48                 --doxygen=yes \
49                 --systemd-unit \
50                 --classic \
51                 --dbus
52   waf build
55 package_jack2() {
56   license+=(LGPL2.1)
57   depends=(db gcc-libs glibc opus libasound.so libdbus-1.so libsamplerate.so
58   libsystemd.so )
59   optdepends=(
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'
66   )
67   conflicts=(jack)
68   provides=(jack libjack.so libjacknet.so libjackserver.so)
70   cd "${pkgbase}"
71   export PYTHONPATH="$PWD:$PYTHONPATH"
72   waf install --destdir="$pkgdir"
74   ( cd "$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
79   )
82 package_jack2-dbus() {
83   pkgdesc+=" (dbus integration)"
84   depends=(gcc-libs glibc jack2 libdbus-1.so libexpat.so libjackserver.so
85   python-dbus)
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: