summaryrefslogtreecommitdiff
path: root/extra/soundtouch/PKGBUILD
blob: 9c36c6d391e76746a523def03654bdca43ecfb6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# hotfix for changed git repo (already fixed upstream in staging)
source[0]="git+https://codeberg.org/soundtouch/soundtouch.git#tag=${_tag}"

# configure handles SSE/MMX/etc. but cmake support is somewhat simpler
# setting flags for disabling optimiazations by hand (and also do the
# configure stuff, just in case)
if [ "$CARCH" = 'i486' -o "$CARCH" = 'i686' ]; then
  eval "$(
    declare -f prepare | \
      sed '
        s|./configure|./configure --disable-x86-optimizations|g
      '
    declare -f build | \
      sed '
        s|cmake |CXXFLAGS=-DSOUNDTOUCH_DISABLE_X86_OPTIMIZATIONS cmake |
      '
  )"
fi