summarylogtreecommitdiffstats
path: root/vivaldi-codecs-ffmpeg-extra-bin.install
blob: 284977179f6b10985573e984c5217598f0115cd7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
copy_ffmpeg() {
  codec=/opt/vivaldi/lib/libffmpeg.so

  if [ ! -f "${codec}.orig" -a -f "${codec}" ]; then
    echo Backing up original libffmpeg.so
    sudo mv $codec "${codec}.orig"
  fi

  echo Installing new libffmpeg.so...
  sudo mv /usr/share/vivaldi-codecs/libffmpeg.so $codec
}

post_install() {
  copy_ffmpeg
}

post_upgrade() {
  copy_ffmpeg
}