# Maintainer: Natanael Copa pkgname=jack pkgver=1.9.9.5 pkgrel=0 pkgdesc="The Jack Audio Connection Kit" url="http://www.jackaudio.org" arch="all" license="GPLv2 GPLv2+ LGPLv2+" depends="" depends_dev="" makedepends="$depends_dev alsa-lib-dev dbus-dev expat-dev libsamplerate-dev libsndfile-dev ncurses-dev readline-dev python" install="" subpackages="$pkgname-dev $pkgname-doc $pkgname-dbus $pkgname-example-clients:_clients" source="http://www.jackaudio.org/downloads/jack-$pkgver.tar.bz2" _builddir="$srcdir"/jack-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done sed -i -e '1s:#!/bin/bash:!#/bin/sh:' svnversion_regenerate.sh } build() { cd "$_builddir" ./waf configure \ -j1 \ --prefix=/usr \ --mandir=/usr/share/man/man1 \ --libdir=/usr/lib \ --dbus \ --alsa \ --classic \ || return 1 ./waf build -j${JOBS:-2} -v || return 1 } package() { cd "$_builddir" ./waf --destdir="$pkgdir" install || return 1 } dbus() { pkgdesc="Jack D-Bus launcher" mkdir -p "$subpkgdir"/usr/bin "$subpkgdir"/usr/share mv "$pkgdir"/usr/bin/jackdbus "$subpkgdir"/usr/bin/ || return 1 mv "$pkgdir"/usr/share/dbus* "$subpkgdir"/usr/share/|| return 1 } _clients() { pkgdesc="Example clients that use Jack" mkdir -p "$subpkgdir"/usr/bin mv "$pkgdir"/usr/bin/*_* "$subpkgdir"/usr/bin/ } md5sums="6c9de6b89db9d7076fa2ce222816cf4c jack-1.9.9.5.tar.bz2" sha256sums="65ef5acceabb1ebd4ac8c437be47a522292e3c2a1f7bfa656de7392d9351ebbd jack-1.9.9.5.tar.bz2" sha512sums="173a10943c98cb17f0041216cc24ce03d5e147f27be121fdf66c4e9d21ba8bf125a1749b985cacffb075618d92025231eb047c754d33d777275373d010a85e27 jack-1.9.9.5.tar.bz2"