blob: 3111303a880aa0aab7cfd8dfd09c69b3d76c9d89 (
plain)
1 # Description: PulseAudio is a cross-platform, networked sound server
2 # URL: https://www.freedesktop.org/wiki/Software/PulseAudio/
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: dbus glib intltool libsndfile meson ninja orc speexdsp
5 # Optional: avahi bluez fftw gst-plugins-base sbc xorg-libice xorg-libsm xorg-libxtst
6
7 name=pulseaudio
8 version=16.1
9 release=1
10 source=(https://freedesktop.org/software/pulseaudio/releases/pulseaudio-$version.tar.xz)
11
12 build() {
13 prt-get isinst bluez sbc || PKGMK_PULSEAUDIO+=' -D bluez5=disabled'
14 prt-get isinst gst-plugins-base || PKGMK_PULSEAUDIO+=' -D gstreamer=disabled'
15 prt-get isinst xorg-libice xorg-libsm xorg-libxtst || PKGMK_PULSEAUDIO+=' -D x11=disabled'
16 prt-get isinst bash-completion || PKGMK_PULSEAUDIO+=' -D bashcompletiondir=no'
17 prt-get isinst zsh || PKGMK_PULSEAUDIO+=' -D zshcompletiondir=no'
18
19 meson setup $name-$version build $PKGMK_PULSEAUDIO \
20 --prefix=/usr \
21 --libexecdir=/usr/lib/$name \
22 --buildtype=plain \
23 --wrap-mode nodownload \
24 -D b_lto=true \
25 -D b_pie=true \
26 -D udevrulesdir=/etc/udev/rules.d \
27 -D database=gdbm \
28 -D speex=enabled \
29 -D tests=false \
30 -D adrian-aec=false \
31 -D doxygen=false
32 meson compile -C build
33 DESTDIR=$PKG meson install -C build
34
35 rm -r $PKG/usr/share/locale
36
37 sed -e '/autospawn/iautospawn = no' -i $PKG/etc/pulse/client.conf
38 sed -e '/flat-volumes/iflat-volumes = no' -i $PKG/etc/pulse/daemon.conf
39 sed -e '/Load several protocols/aload-module module-dbus-protocol' \
40 -i $PKG/etc/pulse/default.pa
41
42 mkdir -p $PKG/etc/pulse/{client,daemon}.conf.d
43 }
|