summaryrefslogtreecommitdiffstats
path: root/pulseaudio/Pkgfile
blob: 881ce3a57a81bc27d9b0acf9ab3442f078d3c983 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Description: Serveur de sons pour systèmes POSIX. Serveur de proximité pour les applications sonores.
# URL: http://www.pulseaudio.org
# Maintainer: NuTyX core team
# Packager: piernov <piernov@piernov.org>
# Depends on: consolekit,alsa-lib,gconf,libcap,liboil,policykit,libsamplerate,libsndfile,speex,libvorbis,libpulse,xorg-libxtst,xorg-libsm,xorg-xcb-util
# Run on: consolekit,alsa-lib,gconf,libcap,liboil,policykit,libsamplerate,libsndfile,speex,libvorbis,libpulse

name=pulseaudio
version=0.9.23
release=1
source=(http://freedesktop.org/software/$name/releases/$name-$version.tar.gz
	pulseaudio.xinit
	asound.conf)

build() {
	unset MAKEFLAGS
	cd $name-$version
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--libexecdir=/usr/lib \
		--localstatedir=/var \
		--disable-hal \
		--disable-tcpwrap \
		--disable-rpath \
		--disable-default-build-tests

        make
	make DESTDIR=$PKG install

	# Lower resample quality, saves CPU
	sed -e '/resample-method/iresample-method=speex-float-0' -i $PKG/etc/pulse/daemon.conf

	# Disable cork-request module, can result in e.g. media players unpausing
	# when there's a Skype call incoming
	sed -e 's|/usr/bin/pactl load-module module-x11-cork-request|#&|' -i $PKG/usr/bin/start-$name-x11

	# Make module-console-kit optional
	sed -e $'/load-module module-console-kit/{i.nofail\n;a.fail\n;}' -i $PKG/etc/pulse/default.pa

	install -Dm755 $SRC/$name.xinit $PKG/usr/lib/X11/xinit/xinitrc.d/$name

	install -Dm644 ../asound.conf $PKG/etc/asound.conf

	rm $PKG/etc/dbus-1/system.d/$name-system.conf

	### Split libpulse

	mkdir -p $SRC/libpulse/{etc/pulse,usr/{lib,share/man/man5}}

	mv {$PKG,$SRC/libpulse}/etc/pulse/client.conf

	mv $PKG/usr/lib/libpulse{,dsp,-simple,-browse,-mainloop-glib}.so* $PKG/usr/lib/libpulsecommon-*.so $SRC/libpulse/usr/lib

	mv {$PKG,$SRC/libpulse}/usr/lib/pkgconfig
	mv {$PKG,$SRC/libpulse}/usr/include

	mv {$PKG,$SRC/libpulse}/usr/share/man/man5/pulse-client.conf.5
	mv {$PKG,$SRC/libpulse}/usr/share/vala
}