summaryrefslogtreecommitdiffstats
path: root/libpulse/Pkgfile
blob: 02eb758a75863bd345a1a4683f7df9aa850d99bd (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
# Description: Bibliothèque libpulse de PulseAudio
# 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,xorg-libxtst,xorg-libsm,xorg-xcb-util
# Run on: consolekit,alsa-lib,gconf,libcap,liboil,policykit,libsamplerate,libsndfile,speex,libvorbis

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

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

	### 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

	rm -rf $PKG/*
	mv $SRC/libpulse/* $PKG
}