# up_trigger everything on all updates
if spell_ok  $SPELL; then
  for each in $(show_up_depends $SPELL 1); do
    if gaze install $each | xargs readelf -d 2> /dev/null |
      grep -q "NEEDED.*lib\(\(swscale\)\|\(avcodec\)\|\(avdevice\)\|\(avfilter\)\|\(avutil\)\|\(postproc\)\|\(swresample\)\)"; then
      if [[ "mpv" == ${each} ]]; then
        up_trigger ${each} cast_self
      else
        up_trigger ${each} check_self
      fi
    fi
  done
fi
