summaryrefslogtreecommitdiff
path: root/community-testing/jack2/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community-testing/jack2/PKGBUILD')
-rw-r--r--community-testing/jack2/PKGBUILD135
1 files changed, 0 insertions, 135 deletions
diff --git a/community-testing/jack2/PKGBUILD b/community-testing/jack2/PKGBUILD
deleted file mode 100644
index dd3ab36e0..000000000
--- a/community-testing/jack2/PKGBUILD
+++ /dev/null
@@ -1,135 +0,0 @@
-# $Id: PKGBUILD 76735 2012-09-28 16:17:58Z schiv $
-# Maintainer: Ray Rashif <schiv@archlinux.org>
-# Contributor: Daniele Paolella <danielepaolella@email.it>
-# Contributor: Philipp Überbacher <hollunder at gmx dot at>
-# Contributor: Thomas Bahn <thomas-bahn at gmx dot net>
-
-pkgbase=jack2
-pkgname=('jack2' 'jack2-dbus')
-#pkgname= # single build (overrides split)
-_tarname=jack
-pkgver=1.9.8
-pkgrel=4
-arch=('i686' 'x86_64')
-url="http://jackaudio.org/"
-backup=(etc/security/limits.d/99-audio.conf)
-license=('GPL')
-makedepends=('python2' 'doxygen' 'libffado'
- 'libsamplerate' 'dbus-core' 'celt')
-source=("http://www.grame.fr/~letz/$_tarname-$pkgver.tgz"
- '99-audio.conf'
- '40-hpet-permissions.rules'
- 'ffado_setbuffsize-jack2.patch')
-md5sums=('1dd2ff054cab79dfc11d134756f27165'
- 'ae65b7c9ebe0fff6c918ba9d97ae342d'
- '471aad533ff56c5d3cbbf65ce32cadef'
- '1502d82fe2276d6f224fff6467a0b6f9')
-
-_pyfix() {
- sed -i 's:bin/env python:bin/env python2:' \
- "$pkgdir/usr/bin/jack_control"
-}
-
-_wafconf() {
- python2 waf configure --prefix=/usr \
- --alsa \
- --firewire \
- --doxygen $@
-}
-
-_isbuild() {
- printf "%s\n" ${pkgname[@]} | grep -qx $1
-}
-
-build() {
- cd "$srcdir/$_tarname-$pkgver"
-
- # backport firewire stuff
- # - needed for setbuffsize feature in latest stable ffado
- # from https://github.com/jackaudio/jack2/commit/96e0251
- (
- cd $_tarname-$pkgver
- patch -Np1 -i "$srcdir/ffado_setbuffsize-jack2.patch"
- )
-
- # Some optimisation bug exists for current GCC
- # see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53663
- export CFLAGS="${CFLAGS/-O[0-9]/-O0}"
- export CXXFLAGS="$CFLAGS"
-
- # fix doxygen building
- sed -i 's:build/default/html:html:' $_tarname-$pkgver/wscript
-
- # we may do 2 different builds
- cp -r $_tarname-$pkgver $_tarname-dbus-$pkgver
-
- # mixed dbus/classic build
- if _isbuild jack2; then
- cd $_tarname-$pkgver
- msg2 "Running Mixed D-Bus/Classic build"
- _wafconf --classic --dbus
- python2 waf build $MAKEFLAGS
- cd ..
- fi
-
- # dbus-ONLY build
- if _isbuild jack2-dbus; then
- cd $_tarname-dbus-$pkgver
- msg2 "Running D-Bus-only build"
- _wafconf --dbus
- python2 waf build $MAKEFLAGS
- cd ..
- fi
-}
-
-package_jack2() {
- ! _isbuild jack2 && return 0
-
- pkgdesc="The next-generation JACK with SMP support"
- depends=('libsamplerate' 'celt')
- optdepends=('libffado: FireWire support'
- 'dbus-core: jackdbus'
- 'python2: jack_control')
- conflicts=('jack')
- provides=('jack' 'jackmp' 'jackdmp' 'jackdbus')
-
- cd "$srcdir/$_tarname-$pkgver/$_tarname-$pkgver"
-
- python2 waf install --destdir="$pkgdir"
-
- # fix for major python transition
- _pyfix
-
- # configure realtime access/scheduling
- # see https://bugs.archlinux.org/task/26343
- install -Dm644 "$srcdir/99-audio.conf" \
- "$pkgdir/etc/security/limits.d/99-audio.conf"
-
- install -Dm644 "$srcdir/40-hpet-permissions.rules" \
- "$pkgdir/usr/lib/udev/rules.d/40-hpet-permissions.rules"
-}
-
-package_jack2-dbus() {
- ! _isbuild jack2-dbus && return 0
-
- pkgdesc="The next-generation JACK with SMP support (for D-BUS interaction only)"
- depends=('libsamplerate' 'celt' 'dbus-core')
- optdepends=('libffado: FireWire support'
- 'python2: jack_control')
- conflicts=('jack' 'jack2')
- provides=('jack' 'jack2' 'jackmp' 'jackdmp' 'jackdbus')
-
- cd "$srcdir/$_tarname-$pkgver/$_tarname-dbus-$pkgver"
-
- python2 waf install --destdir="$pkgdir"
-
- _pyfix
-
- install -Dm644 "$srcdir/99-audio.conf" \
- "$pkgdir/etc/security/limits.d/99-audio.conf"
-
- install -Dm644 "$srcdir/40-hpet-permissions.rules" \
- "$pkgdir/usr/lib/udev/rules.d/40-hpet-permissions.rules"
-}
-
-# vim:set ts=2 sw=2 et: