mirror of
https://github.com/ivabus/pantry
synced 2024-11-29 11:45:07 +03:00
getcomposer.org (#2206)
* new file: projects/getcomposer.org/package.yml * modified: projects/getcomposer.org/package.yml * ln * env clean
This commit is contained in:
parent
2c5953be32
commit
f10d9087b9
1 changed files with 25 additions and 0 deletions
25
projects/getcomposer.org/package.yml
Normal file
25
projects/getcomposer.org/package.yml
Normal file
|
@ -0,0 +1,25 @@
|
|||
distributable:
|
||||
# We are downloading a .tar.gz archive from GitHub because we are unable to download a .phar archive.
|
||||
url: https://github.com/composer/composer/archive/{{version}}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
github: composer/composer
|
||||
|
||||
dependencies:
|
||||
php.net: '*'
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
curl.se: '*'
|
||||
script: |
|
||||
curl -sS https://getcomposer.org/installer | php
|
||||
mkdir -p {{prefix}}/bin
|
||||
mv ./composer.phar {{prefix}}/bin
|
||||
test ! -e {{prefix}}/bin/composer && ln -s ./composer.phar {{prefix}}/bin/composer
|
||||
|
||||
provides:
|
||||
- bin/composer
|
||||
- bin/composer.phar
|
||||
|
||||
test: composer -V | grep {{version}}
|
Loading…
Reference in a new issue