name: should-i-watch-this
base: core20
version: 1.10.0
title: Should I Watch This?
summary: Ask the internet if it's worth watching a movie or show
description: |
  A CLI to ask the internet if it's worth watching a movie or show.  It uses
  the OMDb API to get basic information about the movie.
  The ratings are fetched from the following sources: IMDb, Rotten Tomatoes,
  Metacritic.
icon: logo.png
license: AGPL-3.0

grade: stable
confinement: strict

architectures:
  - build-on: amd64

apps:
  should-i-watch-this:
    command: bin/should-i-watch-this
    plugs:
      - home
      - network
      - desktop

parts:
  should-i-watch-this:
    plugin: crystal
    source: cli
    crystal-build-options:
      - "--release"
    build-packages:
      - git
      - libssl-dev
    # workaround for https://bugs.launchpad.net/snapcraft/+bug/1936671
    override-pull: |
      snapcraftctl pull
      rm -rf $SNAPCRAFT_PART_SRC/lib $SNAPCRAFT_PART_SRC/bin
