opt/pulseaudio/Pkgfile
Alan Mizrahi 60921c7414 [notify] pulseaudio 5.0 -> 8.0
Database format was changed from tdb to gdbm:

Saved stream volumes, device volumes and card configurations will be lost.

Feel free to remove ~pulse/*.tdb if using pulseaudio in system mode,
and ~/.config/pulse/*.tdb for user mode.
2016-06-09 23:40:54 +09:00

61 lines
1.7 KiB
Plaintext

# Description: PulseAudio is a cross-platform, networked sound server
# URL: http://pulseaudio.org/
# Maintainer: Alan Mizrahi, alan at mizrahi dot com dot ve
# Depends on: libsndfile speex json-c dbus
# Optional: libsamplerate bluez avahi sbc orc lirc pyqt4
name=pulseaudio
version=8.0
release=3
source=(http://freedesktop.org/software/pulseaudio/releases/pulseaudio-$version.tar.xz)
build() {
cd $name-$version
./configure \
--prefix=/usr \
--libexecdir=/usr/lib/pulseaudio/libexec \
--sysconfdir=/etc \
--localstatedir=/var \
--disable-nls \
--disable-rpath \
--disable-tcpwrap \
--disable-esound \
--disable-x11 \
--disable-gtk3 \
--disable-oss-output \
--disable-oss-wrapper \
--disable-ipv6 \
--disable-legacy-database-entry-format \
--disable-hal-compat \
--with-database=gdbm \
--disable-tests
# fight unused direct deps
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
make DESTDIR="$PKG" install
# Workaround the /usr/etc CRUX oddity
mkdir $PKG/usr/etc
mv $PKG/etc/dbus-1 $PKG/usr/etc
rm -rf $PKG/etc/bash_completion.d
rm -f $PKG/usr/share/man/man1/start-pulseaudio-kde.1
install -D -m755 src/start-pulseaudio-x11 $PKG/usr/bin/start-pulseaudio-x11
# If proximity helper was installed, remove setuid bit
# To use capabilities instead of the setuid bit, run:
# setcap cap_net_raw=ep /usr/lib/pulseaudio/libexec/pulse/proximity-helper
if [ -x $PKG/usr/lib/pulseaudio/libexec/pulse/proximity-helper ]; then
chmod -s $PKG/usr/lib/pulseaudio/libexec/pulse/proximity-helper
fi
# remove zsh completion functions
rm -rf $PKG/usr/share/zsh
# remove bash completion files
rm -rf $PKG/usr/share/bash-completion
}