# vim: filetype=yaml sw=2
version: 2021.4.15
git_url: https://git.torproject.org/https-everywhere.git
git_hash: '[% c("version") %]'
git_submodule: 1
gpg_keyring: https-everywhere.gpg
tag_gpg_id: 1
filename: "[% project %]-[% c('version') %]-[% c('var/build_id') %].xpi"
var:
  # HTTPS Everywhere is expected to be the same on all platforms. To avoid
  # building the same thing 4 times, using 4 different container images
  # (each one with a different suite or architecture), we set the container
  # to buster/amd64 for all platforms. This allows us to create only one
  # container image, and also build the extension only one time as the
  # filename does not contain the platform, and var/build_id should be
  # the same since there is now nothing platform specific in the build
  # inputs. This allows us to save a little time and disk space.
  container:
    use_container: 1
    suite: buster
    arch: amd64
  deps:
    - git
    - libxslt1.1
    - libxml2-utils
    - sqlite3
    - rsync
    - zip
    - unzip
  pre_pkginst: ''

input_files:
  - project: container-image
  - project: python
    name: python
    target_prepend:
      - common-buster
