Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
Diffstat (limited to 'extra')
-rw-r--r--extra/pulseaudio/PKGBUILD31
1 files changed, 31 insertions, 0 deletions
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