distributable:
  url: https://github.com/nodenv/node-build/archive/v{{version}}.tar.gz
  strip-components: 1

versions:
  github: nodenv/node-build
  strip: /^v-/

dependencies:
  openssl.org: '>=3.0.0'

build:
  dependencies:
    gnu.org/autoconf: '*'
    freedesktop.org/pkg-config: '*'

  script: |
    # install.sh respects $PREFIX, which makes our lives easy
    ./install.sh


provides:
  - bin/node-build

test:
  script:
    node-build --version | grep {{version}}
