diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2019-12-20 12:20:10 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2019-12-20 12:20:10 +0100 |
commit | f4c0bde13f2cfbff93fd10a1381d03a5c1ba94f3 (patch) | |
tree | 0ee3dde793cdc4f5550b095132a6b85ebd5bc14c /extra | |
parent | d354317e492bf0dcd202ff0ea3141b26adf19965 (diff) | |
download | packages-f4c0bde13f2cfbff93fd10a1381d03a5c1ba94f3.tar.xz |
extra/pulseaudio: no gtk3 or avahi for i486
Diffstat (limited to 'extra')
-rw-r--r-- | extra/pulseaudio/PKGBUILD | 31 |
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 |