versions:
  github: composer/composer

dependencies:
  php.net: '*'

build:
  dependencies:
    curl.se: '*'
  script:
    - curl -sSLO https://github.com/composer/composer/releases/download/{{version}}/composer.phar
    - install -D composer.phar {{prefix}}/bin/composer.phar
    - run: ln -sf composer.phar composer
      working-directory: ${{prefix}}/bin

provides:
  - bin/composer
  - bin/composer.phar

test:
  - composer -V
  - composer -V | grep {{version}}
