void-packages/srcpkgs/jack/template

51 lines
1.4 KiB
Bash

# Template file for 'jack'
pkgname=jack
version=1.9.14
revision=1
wrksrc="jack2-${version}"
build_style=waf3
configure_args="--alsa --classic --dbus"
hostmakedepends="pkg-config"
makedepends="opus-devel libsamplerate-devel readline-devel dbus-devel celt-devel
$(vopt_if ffado libffado-devel)"
depends="python3-dbus"
short_desc="JACK Audio Connection Kit low-latency sound server (pro audio)"
maintainer="Daniel Eyßer <daniel.eysser@gmail.com>"
license="GPL-2.0-or-later, LGPL-2.1-or-later"
homepage="https://jackaudio.org/"
distfiles="https://github.com/jackaudio/jack2/archive/v${version}.tar.gz"
checksum=a20a32366780c0061fd58fbb5f09e514ea9b7ce6e53b080a44b11a558a83217c
python_version=3
# Package build options
build_options="ffado"
desc_option_ffado="Enable support for FireWire audio devices"
if [ -z "CROSS_BUILD" ]; then
makedepends+=" eigen"
fi
post_install() {
# 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"
}
}