Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/gstreamer/PKGBUILD
blob: a28b9fea9af6f40c0be4f14ab951e9b76c688f93 (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
38
39
40
41
42
43
44
45
46
# svt-hevc is blacklisted
makedepends=(${makedepends[@]//svt-hevc/})

eval "$(
  declare -f build | \
    sed '
      s/arch-meson/arch-meson -D svthevcenc=disabled /g
    '
)"

eval "$(
  declare -f package_gst-plugins-bad-libs | \
    sed '
      s/svthevcenc//g
    '
)"

eval "$(
  declare -f package_gst-plugins-bad | \
    sed '
      s/svt-hevc//g
    '
)"

# no opencv on i486 for now
if [ "$CARCH" = 'i486' ]; then
  makedepends=(${makedepends[@]//opencv/})
  eval "$(
    declare -f build | \
      sed '
        s@arch-meson @arch-meson -D opencv=disabled @
       '
    declare -f package_gst-plugins-bad-libs | \
      sed '
        /mkdir.*opencv/d
        /mv.*opencv/d
        /gst\/opencv/d
        s/in opencv wpe/in wpe/
       '
    declare -f package_gst-plugin-opencv | \
      sed '
        3 i if false; then
        $ i fi      
      '
  )"
fi