summaryrefslogtreecommitdiffstats
path: root/extra/pulseaudio/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'extra/pulseaudio/Pkgfile')
-rw-r--r--extra/pulseaudio/Pkgfile64
1 files changed, 38 insertions, 26 deletions
diff --git a/extra/pulseaudio/Pkgfile b/extra/pulseaudio/Pkgfile
index 0eee3152e..96a250eb2 100644
--- a/extra/pulseaudio/Pkgfile
+++ b/extra/pulseaudio/Pkgfile
@@ -1,35 +1,47 @@
-# Description: serveur de sons pour systèmes POSIX. Serveur de proximité pour les applications sonores.
+# 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: thierryn1 at hispeed dot ch
-# 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
+# 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
+# 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.9.23
-release=3
+version=0.99.4
+release=1
source=(http://freedesktop.org/software/$name/releases/$name-$version.tar.gz
- asound.conf)
+ pulseaudio.xinit
+ pulseaudio.svg
+ sound.conf
+ configuration_resample_tweak.patch
+ start_pulseaudio_earlier_with_Gnome.patch
+ NuTyX_config.patch)
build() {
- unset MAKEFLAGS
- cd $name-$version
- ./configure --prefix=/usr \
- --sysconfdir=/etc \
- --disable-static \
- --disable-avahi \
- --disable-jack \
- --disable-asyncns \
- --disable-tcpwrap \
- --disable-lirc \
- --disable-bluez \
- --disable-hal \
- --disable-ltdl-install \
- --disable-rpath \
- --disable-default-build-tests
+ 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
+ make DESTDIR=$PKG install
- install -Dm644 ../asound.conf $PKG/etc/asound.conf
- rm $PKG/etc/dbus-1/system.d/$name-system.conf
-}
+ 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
+}