Remove jinja variables except version
-{% set name = "dasel" %}
-{% set author = "TomWright" %}
{% set version = "1.24.3" %}
-{% set pkg_src = 'src/' + name %}
package:
- name: {{ name|lower }}
+ name: dasel
version: {{ version }}
source:
- folder: {{ pkg_src }}
- url: https://github.com/{{ author }}/{{ name }}/archive/refs/tags/v{{ version }}.tar.gz
+ folder: src/dasel
+ url: https://github.com/TomWright/dasel/archive/refs/tags/v{{ version }}.tar.gz
sha256: 86d497e7dcfe63901ef0aeddb31e3989959d60d785a04f98fc6a88b6f497980a
build:
number: 0
script:
- - cd {{ pkg_src }}
+ - cd src/dasel
- go install -v -ldflags "-X github.com/tomwright/dasel/internal.Version=v{{ version }}" ./cmd/dasel
- go test -v
@@ -25,20 +22,20 @@ requirements:
test:
commands:
- - {{ name }} --help
- - {{ name }} --version
+ - dasel --help
+ - dasel --version
about:
- home: https://github.com/{{ author }}/{{ name }}
+ home: https://github.com/TomWright/dasel
license: MIT
- license_file: {{ pkg_src }}/LICENSE
+ license_file: src/dasel/LICENSE
summary: |
Dasel (short for data-selector) allows you to query and modify data structures
using selector strings.
description: |
Select, put and delete data from JSON, TOML, YAML, XML and CSV files with a single
tool. Supports conversion between formats and can be used as a Go package.
- dev_url: https://github.com/{{ author }}/{{ name }}
+ dev_url: https://github.com/TomWright/dasel
extra:
recipe-maintainers:
