From f4c0bde13f2cfbff93fd10a1381d03a5c1ba94f3 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Fri, 20 Dec 2019 12:20:10 +0100 Subject: extra/pulseaudio: no gtk3 or avahi for i486 --- extra/pulseaudio/PKGBUILD | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 extra/pulseaudio/PKGBUILD (limited to 'extra') diff --git a/extra/pulseaudio/PKGBUILD b/extra/pulseaudio/PKGBUILD new file mode 100644 index 00000000..eccb80b0 --- /dev/null +++ b/extra/pulseaudio/PKGBUILD @@ -0,0 +1,31 @@ +# pulseaudio, disable avahi and gtk3 on i486 +makedepends=(${makedepends[@]//avahi/}) +makedepends=(${makedepends[@]//gtk3/}) + +makedepends_i686=('avahi') +makedepends_i686+=('gtk3') +makedepends_pentium4=("${makedepends_i686[@]}") + +if [ "${CARCH}" = 'i486' ]; then + eval "$( + declare -f build | \ + sed ' + s/\(arch-meson pulseaudio build\)/\1 -D gtk=disabled -D avahi=disabled/ + ' + )" + eval "$( + declare -f package_pulseaudio-zeroconf | \ + sed ' + /depends=/ { + s/avahi// + } + ' + )" + eval "$( + declare -f package_pulseaudio | \ + sed ' + /_pick.*libavahi-wrap.so/d + ' + )" + +fi -- cgit v1.2.3-70-g09d2