summaryrefslogtreecommitdiff
path: root/extra/openal/PKGBUILD
blob: 2e982053e82d91ab5254ad67f4fd03bbe355ce14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# disable Intel micro-optimizations and intrinsics per platform
source+=('openal-pentium4.patch' 'openal-i686.patch' 'openal-i486.patch')
sha512sums+=(
	'bba897b5c1f39775ec28c4e92e3ef0e3e69d62c9463cacd6841c704e7ff5130860cef7f16e464593491dcb50a0036c487188939a989780b5a5c7321f735ae820'
	'7fdbf5efa7fb223666592d1d78e684798e29a46e7948f379d8b8e3f527c42f1875539722cfacb88182a3187dfb334de3aea012298a6ab111d3c06abd8d41c9b4'
	'54423f4a45a90570e5331c98916dcb7442bc97b39c1161c0dad2450da829f8866e9c95098b84b4f9fabce34f44df3c1b9f43d257672c7d210236160548ac081f'
)

if [ "$CARCH" = 'pentium4' ]; then
  eval "$(
    declare -f prepare | \
      sed '
        /git/ a \
          patch -p1 -i "$srcdir/openal-pentium4.patch"
      '
  )"
fi

if [ "$CARCH" = 'i686' ]; then
  eval "$(
    declare -f prepare | \
      sed '
        /git/ a \
          patch -p1 -i "$srcdir/openal-i686.patch"
      '
  )"
fi

if [ "$CARCH" = 'i486' ]; then
  eval "$(
    declare -f prepare | \
      sed '
        /git/ a \
          patch -p1 -i "$srcdir/openal-i486.patch"
      '
  )"
fi