2013-06-07 14:16:15 +00:00
|
|
|
# $Id$
|
2013-04-01 23:50:22 +00:00
|
|
|
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
|
|
|
|
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
|
|
|
|
# Contributor: Corrado Primier <bardo@aur.archlinux.org>
|
|
|
|
# Contributor: William Rea <sillywilly@gmail.com>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - added --disable-neon-opt to configure
|
|
|
|
|
|
|
|
pkgbase=pulseaudio
|
|
|
|
pkgname=(pulseaudio libpulse)
|
|
|
|
pkgdesc="A featureful, general-purpose sound server"
|
2013-06-07 14:16:15 +00:00
|
|
|
pkgver=4.0
|
2013-10-30 14:06:42 +00:00
|
|
|
pkgrel=6
|
2013-04-01 23:50:22 +00:00
|
|
|
arch=(i686 x86_64)
|
|
|
|
url="http://www.freedesktop.org/wiki/Software/PulseAudio"
|
2013-10-28 14:04:55 +00:00
|
|
|
license=(LGPL AGPL3)
|
2013-04-01 23:50:22 +00:00
|
|
|
makedepends=(libasyncns libcap attr libxtst libsm libsamplerate libtool rtkit
|
2013-10-28 14:04:55 +00:00
|
|
|
speex tdb systemd dbus avahi bluez bluez-libs gconf intltool jack sbc
|
2013-06-07 14:16:15 +00:00
|
|
|
lirc-utils openssl fftw orc json-c gtk3 webrtc-audio-processing
|
2013-10-28 14:04:55 +00:00
|
|
|
check git)
|
2013-04-01 23:50:22 +00:00
|
|
|
options=(!emptydirs !libtool)
|
2013-10-28 14:04:55 +00:00
|
|
|
#source=(http://freedesktop.org/software/$pkgbase/releases/$pkgbase-$pkgver.tar.xz
|
|
|
|
source=($pkgbase-$pkgver::git://anongit.freedesktop.org/pulseaudio/pulseaudio#commit=09e88de
|
2013-04-01 23:50:22 +00:00
|
|
|
pulseaudio.xinit)
|
2013-10-28 14:04:55 +00:00
|
|
|
sha256sums=('SKIP'
|
2013-04-01 23:50:22 +00:00
|
|
|
'a0db6cdc74fbf0ca10e2343c08e1e228f109221c6c0ff91b0bfade5c4bdf03cf')
|
|
|
|
|
2013-10-30 14:06:42 +00:00
|
|
|
prepare() {
|
|
|
|
cd $pkgbase-$pkgver
|
|
|
|
# ABI break https://bugs.freedesktop.org/show_bug.cgi?id=71047
|
|
|
|
git revert -n 16886bb b98a2e1
|
|
|
|
}
|
2013-10-28 14:04:55 +00:00
|
|
|
|
2013-04-01 23:50:22 +00:00
|
|
|
build() {
|
|
|
|
cd $pkgbase-$pkgver
|
|
|
|
|
2013-10-28 14:04:55 +00:00
|
|
|
./autogen.sh --prefix=/usr \
|
2013-04-01 23:50:22 +00:00
|
|
|
--sysconfdir=/etc \
|
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--with-udev-rules-dir=/usr/lib/udev/rules.d \
|
|
|
|
--with-database=tdb \
|
|
|
|
--disable-tcpwrap \
|
|
|
|
--disable-rpath \
|
|
|
|
--disable-default-build-tests \
|
|
|
|
--disable-neon-opt
|
|
|
|
|
|
|
|
# fight unused direct deps
|
|
|
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
|
|
|
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package_pulseaudio() {
|
2013-06-07 14:16:15 +00:00
|
|
|
depends=("libpulse=$pkgver-$pkgrel" rtkit libltdl speex tdb systemd fftw orc
|
|
|
|
libsamplerate webrtc-audio-processing sbc)
|
2013-04-01 23:50:22 +00:00
|
|
|
optdepends=('avahi: zeroconf support'
|
2013-10-28 14:04:55 +00:00
|
|
|
'bluez: bluetooth support'
|
2013-06-07 14:16:15 +00:00
|
|
|
'bluez-libs: bluetooth support'
|
2013-04-01 23:50:22 +00:00
|
|
|
'gconf: configuration through gconf (paprefs)'
|
|
|
|
'jack: jack support'
|
|
|
|
'lirc-utils: infra-red support'
|
|
|
|
'openssl: RAOP support'
|
2013-10-28 14:04:55 +00:00
|
|
|
'python-pyqt: Equalizer GUI (qpaeq)')
|
2013-04-01 23:50:22 +00:00
|
|
|
backup=(etc/pulse/{daemon.conf,default.pa,system.pa})
|
|
|
|
install=pulseaudio.install
|
|
|
|
|
|
|
|
cd $pkgbase-$pkgver
|
2013-06-07 14:16:15 +00:00
|
|
|
make -j1 DESTDIR="$pkgdir" install \
|
|
|
|
bashcompletiondir=/usr/share/bash-completion/completions
|
2013-04-01 23:50:22 +00:00
|
|
|
|
|
|
|
# Disable autospawn by default
|
|
|
|
sed -e '/autospawn/iautospawn=no' \
|
|
|
|
-i "$pkgdir/etc/pulse/client.conf"
|
|
|
|
|
2013-10-28 14:04:55 +00:00
|
|
|
# Speed up pulseaudio shutdown so that it exits immediately with
|
|
|
|
# the last user session (module-systemd-login keeps it alive)
|
2013-04-01 23:50:22 +00:00
|
|
|
sed -e '/exit-idle-time/iexit-idle-time=0' \
|
|
|
|
-i "$pkgdir/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 "$pkgdir/usr/bin/start-pulseaudio-x11"
|
|
|
|
|
|
|
|
install -Dm755 "$srcdir/pulseaudio.xinit" "$pkgdir/etc/X11/xinit/xinitrc.d/pulseaudio"
|
|
|
|
|
|
|
|
rm "$pkgdir/etc/dbus-1/system.d/pulseaudio-system.conf"
|
|
|
|
|
2013-06-07 14:16:15 +00:00
|
|
|
install -Dm644 shell-completion/pulseaudio-zsh-completion.zsh \
|
|
|
|
"$pkgdir/usr/share/zsh/site-functions/_pulseaudio"
|
|
|
|
|
2013-04-01 23:50:22 +00:00
|
|
|
### Split libpulse
|
|
|
|
|
|
|
|
mkdir -p "$srcdir"/libpulse/{etc/pulse,usr/{bin,lib/pulseaudio,share/man/man{1,5}}}
|
|
|
|
|
|
|
|
mv {"$pkgdir","$srcdir/libpulse"}/etc/pulse/client.conf
|
|
|
|
|
|
|
|
mv "$pkgdir"/usr/bin/pa{cat,ctl,dsp,mon,play,rec,record} \
|
|
|
|
"$srcdir/libpulse/usr/bin"
|
|
|
|
|
|
|
|
mv "$pkgdir"/usr/lib/libpulse{,-simple,-mainloop-glib}.so* \
|
|
|
|
"$srcdir/libpulse/usr/lib"
|
|
|
|
|
|
|
|
mv "$pkgdir"/usr/lib/pulseaudio/libpulsedsp.so \
|
|
|
|
"$pkgdir"/usr/lib/pulseaudio/libpulsecommon-*.so \
|
|
|
|
"$srcdir/libpulse/usr/lib/pulseaudio"
|
|
|
|
|
|
|
|
mv {"$pkgdir","$srcdir/libpulse"}/usr/lib/cmake
|
|
|
|
mv {"$pkgdir","$srcdir/libpulse"}/usr/lib/pkgconfig
|
|
|
|
|
|
|
|
mv {"$pkgdir","$srcdir/libpulse"}/usr/include
|
|
|
|
|
|
|
|
mv "$pkgdir"/usr/share/man/man1/pa{cat,ctl,dsp,play}.1 \
|
|
|
|
"$srcdir/libpulse/usr/share/man/man1"
|
|
|
|
|
|
|
|
mv {"$pkgdir","$srcdir/libpulse"}/usr/share/man/man5/pulse-client.conf.5
|
|
|
|
mv {"$pkgdir","$srcdir/libpulse"}/usr/share/vala
|
|
|
|
}
|
|
|
|
|
|
|
|
package_libpulse() {
|
|
|
|
pkgdesc="$pkgdesc (client library)"
|
2013-06-07 14:16:15 +00:00
|
|
|
depends=(dbus libasyncns libcap libxtst libsm libsndfile json-c)
|
2013-04-01 23:50:22 +00:00
|
|
|
optdepends=('alsa-plugins: ALSA support'
|
|
|
|
'avahi: zeroconf support')
|
|
|
|
backup=(etc/pulse/client.conf)
|
2013-10-28 14:04:55 +00:00
|
|
|
license=(LGPL)
|
2013-04-01 23:50:22 +00:00
|
|
|
|
|
|
|
mv "$srcdir"/libpulse/* "$pkgdir"
|
|
|
|
}
|