54 lines
1.4 KiB
Plaintext
54 lines
1.4 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 orc tdb dbus
|
|
# Optional: libsamplerate bluez openssl sbc lirc pyqt4
|
|
|
|
name=pulseaudio
|
|
version=4.0
|
|
release=2
|
|
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 \
|
|
--mandir=/usr/man \
|
|
--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 \
|
|
--disable-systemd \
|
|
--with-database=tdb \
|
|
--disable-tests
|
|
|
|
# fight unused direct deps
|
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
|
|
|
make
|
|
make -j 1 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
|
|
|
|
# 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
|
|
}
|