diff options
author | piernov <piernov@piernov.org> | 2011-08-14 16:14:53 +0200 |
---|---|---|
committer | piernov <piernov@piernov.org> | 2011-08-14 16:14:53 +0200 |
commit | c13959ec4c740c836db6b027e9934ce6f6e4cbe0 (patch) | |
tree | c6a03ca94274e1232f8bc0a8dfc318a18e345bae /pulseaudio/Pkgfile | |
parent | d85179dcbd7e30586c9a5ce83fa6e69fca78e7d5 (diff) | |
download | gnome3-c13959ec4c740c836db6b027e9934ce6f6e4cbe0.tar.gz gnome3-c13959ec4c740c836db6b027e9934ce6f6e4cbe0.tar.bz2 gnome3-c13959ec4c740c836db6b027e9934ce6f6e4cbe0.tar.xz gnome3-c13959ec4c740c836db6b027e9934ce6f6e4cbe0.zip |
pulseaudio 0.9.23-1 ajout port
Diffstat (limited to 'pulseaudio/Pkgfile')
-rw-r--r-- | pulseaudio/Pkgfile | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/pulseaudio/Pkgfile b/pulseaudio/Pkgfile new file mode 100644 index 0000000..881ce3a --- /dev/null +++ b/pulseaudio/Pkgfile @@ -0,0 +1,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 +} |