# 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 # 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 # Run on: consolekit,alsa-lib,gconf,libcap,liboil,policykit,libsamplerate,libsndfile,speex,libvorbis,json-c,bluez,jack-audio-connection-kit,avahi name=pulseaudio version=0.99.4 release=1 source=(http://freedesktop.org/software/$name/releases/$name-$version.tar.gz pulseaudio.xinit pulseaudio.svg sound.conf configuration_resample_tweak.patch start_pulseaudio_earlier_with_Gnome.patch NuTyX_config.patch) build() { cd $name-$version 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 }