kind: autotools
depends:
- bluetooth.bst
sources:
- kind: git
  url: upstream:webrtc-audio-processing
  track: v0.2
  ref: 9a0e28cab06f43d10cd00b69fc14dee78a73c2d0
config:
  configure-commands:
  - |
    NOCONFIGURE=1 ./autogen.sh

    case "%{arch}" in
    x86_32)
      sed -i -e "s/-O2/& -msse2/" configure
      ;;
    esac

    ./configure --prefix="%{prefix}" --sysconfdir=/etc --localstatedir=/var
