2024-03-11 16:59:14 +03:00
|
|
|
distributable:
|
|
|
|
url: https://github.com/matejak/argbash/archive/refs/tags/{{version}}.tar.gz
|
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
|
|
|
github: matejak/argbash
|
|
|
|
|
|
|
|
dependencies:
|
2024-06-03 21:25:51 +03:00
|
|
|
gnu.org/bash: '>=3'
|
|
|
|
gnu.org/autoconf: '*'
|
2024-03-11 16:59:14 +03:00
|
|
|
|
|
|
|
build:
|
|
|
|
script:
|
2024-06-03 21:25:51 +03:00
|
|
|
- mkdir -p '{{prefix}}'
|
|
|
|
- cp -r bin src '{{prefix}}'
|
|
|
|
|
2024-03-11 16:59:14 +03:00
|
|
|
provides:
|
|
|
|
- bin/argbash
|
|
|
|
- bin/argbash-init
|
|
|
|
- bin/argbash-1to2
|
|
|
|
|
|
|
|
test:
|
|
|
|
- argbash --version | grep {{version}}
|
|
|
|
- argbash --help | grep 'Argbash is an argument parser generator for Bash'
|
2024-06-03 21:25:51 +03:00
|
|
|
- argbash-init --pos positional-arg --opt option --opt-bool print minimal.m4
|
|
|
|
- cat minimal.m4 | grep 'This is just a script template'
|
|
|
|
- argbash minimal.m4 -o minimal.sh
|
|
|
|
- ./minimal.sh --help | grep 'Usage:'
|