void-packages/srcpkgs/jack/template
2017-03-19 14:06:13 -04:00

52 lines
1.3 KiB
Bash

# Template file for 'jack'
pkgname=jack
version=1.9.10
revision=11
wrksrc="jack2-${version}"
# XXX libffado (firewire)
hostmakedepends="pkg-config python"
makedepends="opus-devel libsamplerate-devel readline-devel dbus-devel celt-devel"
depends="python-dbus"
short_desc="JACK Audio Connection Kit low-latency sound server (pro audio)"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2, LGPL-2.1"
homepage="http://jackaudio.org/"
distfiles="https://github.com/jackaudio/jack2/archive/v${version}.tar.gz"
checksum=88f1b6601b7c8950e6a2d5940b423a33ee628ae5583da40bdce3d9317d8c600d
if [ -z "CROSS_BUILD" ]; then
makedepends+=" eigen"
fi
do_configure() {
python waf configure --prefix=/usr --alsa --classic --dbus
}
do_build() {
python waf build ${makejobs}
}
do_install() {
python waf install --destdir=${DESTDIR}
# pam_limits(8) support
vinstall ${FILESDIR}/jack-limitsd.conf 644 etc/security/limits.d jack.conf
# audio group permissions for realtime
vinstall ${FILESDIR}/40-hpet-permissions.rules 644 usr/lib/udev/rules.d
}
libjack_package() {
short_desc+=" - runtime library"
pkg_install() {
vmove "usr/lib/*.so.*"
vmove usr/lib/jack
}
}
jack-devel_package() {
depends="libjack>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}