summaryrefslogtreecommitdiffstats
path: root/jack2/Pkgfile
blob: c14ec0a96b299cd7126dc484b0f7df1ab8dcc097 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Description: Serveur audio à faible latence.
# URL: http://jackaudio.org/
# Maintainer: piernov <piernov@piernov.org>
# Packager: piernov <piernov@piernov.org>
# Depends on: dbus, celt, libsndfile, libsamplerate
# Run on: dbus,celt,libsndfile,libsamplerate

name=jack2
version=1.9.8
release=1
source=(http://www.grame.fr/~letz/jack-$version.tgz)

build() {
	cd jack-$version/jack-$version
	python2 waf configure --prefix=/usr \
		--dbus \
		--classic \
		--alsa \
#		--freebob \
#		--firewire

	python2 waf build $MAKEFLAGS
	python2 waf install --destdir=$PKG

	sed 's|bin/env python|bin/env python2|' -i $PKG/usr/bin/jack_control

	mkdir -p $PKG/lib/udev/rules.d/
	echo 'KERNEL=="rtc0", GROUP="audio"' > $PKG/lib/udev/rules.d/40-rtc-permissions.rules
	echo 'KERNEL=="hpet", GROUP="audio"' > $PKG/lib/udev/rules.d/40-hpet-permissions.rules

	mkdir -p $PKG/etc/security/limits.d/
	cat > $PKG/etc/security/limits.d/99-audio.conf <<EOF
@audio 	- rtprio 	99
@audio 	- memlock 	unlimited
EOF
}