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
|
# 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, json-c, xorg-libxtst, xorg-libsm, xorg-xcb-util, imagemagick, bluez, jack-audio-connection-kit, avahi, lcms2,librsvg
# Run on: consolekit,alsa-lib,gconf,libcap,liboil,policykit,libsamplerate,libsndfile,speex,libvorbis,json-c,bluez,jack-audio-connection-kit,avahi, lcms2,librsvg
name=pulseaudio
version=1.0
release=4
source=(http://freedesktop.org/software/$name/releases/$name-$version.tar.xz
pulseaudio.xinit
pulseaudio.svg
sound.conf
configuration_resample_tweak.patch
start_pulseaudio_earlier_with_Gnome.patch
NuTyX_config.patch
version-number.patch)
build() {
cd $name-$version
patch -Np1 -i ../version-number.patch
patch -p1 < ../configuration_resample_tweak.patch
patch -p1 < ../start_pulseaudio_earlier_with_Gnome.patch
patch -p1 < ../NuTyX_config.patch
./configure --prefix=/usr \
--sysconfdir=/etc \
--libexecdir=/usr/lib \
--localstatedir=/var \
--disable-hal
make
make DESTDIR=$PKG install
install -D -m 0644 ../sound.conf $PKG/etc/sysconfig/sound
install -D -m 0755 ../$name.xinit $PKG/usr/lib/X11/xinit/xinitrc.d/$name.sh
install -D -m 0644 ../$name.svg $PKG/usr/share/icons/hicolor/scalable/apps/$name.svg
mkdir -p $PKG/usr/share/icons/hicolor/scalable/devices
ln -s ../apps/$name.svg $PKG/usr/share/icons/hicolor/scalable/devices/audio-backend-pulseaudio.svg
for size in 16 22 32 48 64 128; do
mkdir -p $PKG/usr/share/icons/hicolor/${size}x${size}/{apps,devices}
convert -geometry ${size}x${size} ../$name.svg $PKG/usr/share/icons/hicolor/${size}x${size}/apps/$name.png
ln -s ../apps/$name.png $PKG/usr/share/icons/hicolor/${size}x${size}/devices/audio-backend-pulseaudio.png
done
rm -f $PKG/etc/dbus-1/system.d/$name-system.conf
sed -i 's,\(/usr/bin/pactl load-module module-x11-cork-request\),#\1,' $PKG/usr/bin/start-pulseaudio-x11
}
|