name: yq
version: 'v4.53.3'
summary: A lightweight and portable command-line data file processor
description: |
  `yq` uses [jq](https://github.com/stedolan/jq) like syntax but works with yaml, json, xml, csv, properties and TOML files.
base: core24
grade: stable # devel|stable. must be 'stable' to release into candidate/stable channels
confinement: strict
platforms:
  amd64:
    build-on: [amd64]
    build-for: [amd64]
  arm64:
    build-on: [arm64]
    build-for: [arm64]
  armhf:
    build-on: [armhf]
    build-for: [armhf]
  s390x:
    build-on: [s390x]
    build-for: [s390x]
  ppc64el:
    build-on: [ppc64el]
    build-for: [ppc64el]
apps:
  yq:
    command: bin/yq
    plugs: [home, removable-media]
parts:
  yq:
    plugin: go
    build-environment:
      - CGO_ENABLED: 0
    source: https://github.com/mikefarah/yq.git
    source-tag: v4.53.3
    build-snaps:
      - go/latest/stable
