new package: composer

This commit is contained in:
Leonid Pliushch 2020-12-10 22:04:30 +02:00
parent e6de96e48a
commit 5ceec672c0
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
TERMUX_PKG_HOMEPAGE=https://getcomposer.org/
TERMUX_PKG_DESCRIPTION="Dependency Manager for PHP"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_VERSION=2.0.8
TERMUX_PKG_GIT_BRANCH=$TERMUX_PKG_VERSION
TERMUX_PKG_SRCURL=https://github.com/composer/composer.git
TERMUX_PKG_DEPENDS="php"
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_make_install() {
composer install
php -d phar.readonly=Off bin/compile
install -Dm700 composer.phar $TERMUX_PREFIX/bin/composer
}