summaryrefslogtreecommitdiff
path: root/extra/libsndfile/PKGBUILD
blob: a49ae415a1268e3095cedc85943d3c24911b4f3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# disable SSE2 on i686 and i486
source_i486=('libsndfile-1.0.31-no-sse2.patch')
sha512sums_i486=('3088df360db3e8a86e9586597594db0a2c633504bb2453ff17e9bd062ce29a8773ec35426dfda9391eac72cccb2ca12dbab11915f9c4313283b858f756a85f0b')
source_i686=('libsndfile-1.0.31-no-sse2.patch')
sha512sums_i686=('3088df360db3e8a86e9586597594db0a2c633504bb2453ff17e9bd062ce29a8773ec35426dfda9391eac72cccb2ca12dbab11915f9c4313283b858f756a85f0b')
if [ "$CARCH" == 'i686' ] || [ "$CARCH" == 'i486' ]; then
  eval "$(
    {
      declare -f prepare || \
      printf 'prepare() {\n}\n'
    } \
    | sed '
      $i cd "${srcdir}/${pkgbase}-${pkgver}" \
         patch -p1 -i "$srcdir/libsndfile-1.0.31-no-sse2.patch"
    '
  )"
fi