8c5c7c904b
Closes: #32232 [via git-merge-pr]
96 lines
2.9 KiB
Bash
96 lines
2.9 KiB
Bash
# Template file for 'pulseaudio'
|
|
pkgname=pulseaudio
|
|
version=15.0
|
|
revision=1
|
|
build_style=meson
|
|
configure_args="-Djack=enabled -Dlirc=disabled -Dhal-compat=false -Dorc=enabled
|
|
-Dgtk=disabled -Dsystemd=disabled -Dwebrtc-aec=enabled
|
|
-Dbluez5=enabled -Dbluez5-ofono-headset=false -Dbluez5-native-headset=true
|
|
-Delogind=enabled -Dudevrulesdir=/usr/lib/udev/rules.d
|
|
-Dbashcompletiondir=/usr/share/bash-completion/completions"
|
|
hostmakedepends="cmake m4 gettext libtool orc-devel perl-XML-Parser pkg-config
|
|
doxygen"
|
|
makedepends="$(vopt_if avahi avahi-libs-devel) eudev-libudev-devel fftw-devel jack-devel
|
|
libSM-devel libXtst-devel libasyncns-devel libbluetooth-devel
|
|
libcap-devel libcap-progs libglib-devel libltdl-devel openssl-devel
|
|
libsndfile-devel libsoxr-devel orc-devel sbc-devel speex-devel tdb-devel
|
|
webrtc-audio-processing-devel xcb-util-devel check-devel elogind-devel"
|
|
depends="pulseaudio-utils>=${version}_${revision} rtkit"
|
|
conf_files="/etc/pulse/*"
|
|
short_desc="Featureful, general-purpose sound server"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="https://www.freedesktop.org/wiki/Software/PulseAudio"
|
|
distfiles="${FREEDESKTOP_SITE}/${pkgname}/releases/${pkgname}-${version}.tar.xz"
|
|
checksum=a40b887a3ba98cc26976eb11bdb6613988f145b19024d1b6555c6a03c9cba1a0
|
|
python_version=3
|
|
# FIXME: core-util-test fails
|
|
make_check=yes
|
|
|
|
system_groups="pulse-access"
|
|
system_accounts="pulse"
|
|
pulse_groups="audio"
|
|
pulse_homedir="/var/empty"
|
|
|
|
build_options="avahi"
|
|
build_options_default="avahi"
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" glib"
|
|
fi
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
arm*) configure_args+=" -Db_lto=false"
|
|
esac
|
|
|
|
pre_configure() {
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
# Disable neon optimizations for the arm* architectures
|
|
arm*) vsed -e '/ neon/d' -i src/pulsecore/meson.build ;;
|
|
esac
|
|
}
|
|
|
|
post_install() {
|
|
rm ${DESTDIR}/etc/dbus-1/system.d/pulseaudio-system.conf
|
|
vsv pulseaudio
|
|
vdoc $FILESDIR/README.voidlinux
|
|
}
|
|
|
|
libpulseaudio_package() {
|
|
shlib_provides="libpulsecore-${version}.so libpulsecommon-${version}.so"
|
|
short_desc+=" - shared libraries"
|
|
pkg_install() {
|
|
vmove "usr/lib/libpulse.so.*"
|
|
vmove "usr/lib/libpulse-simple.so.*"
|
|
vmove "usr/lib/libpulse-mainloop-glib.so.*"
|
|
vmove usr/lib/pulseaudio
|
|
}
|
|
}
|
|
|
|
pulseaudio-devel_package() {
|
|
depends="libasyncns-devel dbus-devel libXtst-devel libpulseaudio>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/lib/cmake
|
|
vmove usr/lib/libpulse.so
|
|
vmove usr/lib/libpulse-simple.so
|
|
vmove usr/lib/libpulse-mainloop-glib.so
|
|
vmove usr/share/vala
|
|
}
|
|
}
|
|
|
|
pulseaudio-utils_package() {
|
|
short_desc+=" - utilities"
|
|
pkg_install() {
|
|
for b in pacat pacmd pactl padsp pamon paplay parec \
|
|
parecord pasuspender pax11publish; do
|
|
vmove usr/bin/$b
|
|
vmove usr/share/man/man1/${b}.1
|
|
done
|
|
vmove usr/bin/pa-info
|
|
vmove usr/share/bash-completion
|
|
vmove usr/share/zsh
|
|
}
|
|
}
|