title: Extract deb file from an archive in bazel
body: <p>I need to extract a deb file that is available inside an archive - in bazel</p>
  
  <pre><code>new_artifactory_archive(
          name = "extract",
          build_file = "//path_to_build_file:my_file.BUILD",
          path = "archive.tar.gz",
          repo = "https://repository_where_archive_is/",
          sha256 = "xxxxx",
      )
  </code></pre>
  
  <p>By default, Bazel extracted the archive, but I don't know how can I extract the deb file then.</p>
  
  <p><em>archive.tar.gz contains: deb_file1.deb and deb_file2.deb.</em></p>
  
  <p>I have to extract those deb_file*.deb files.</p>
  
  <p>I tried to create a rule and I used something like 
  <code>cmd = "cd to_path_where_debs_are_available &amp;&amp; ar -x deb_file1.deb &amp;&amp; tar -xf data.tar.xz"</code> </p>
  
  <p>But I don't think this is the best approach.
  Thank you!</p>