2020-12-10 21:04:30 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://getcomposer.org/
|
|
|
|
TERMUX_PKG_DESCRIPTION="Dependency Manager for PHP"
|
|
|
|
TERMUX_PKG_LICENSE="MIT"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2020-12-10 21:04:30 +01:00
|
|
|
TERMUX_PKG_VERSION=2.0.8
|
2020-12-10 21:57:24 +01:00
|
|
|
TERMUX_PKG_REVISION=1
|
2020-12-10 21:04:30 +01:00
|
|
|
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
|
2020-12-10 21:57:24 +01:00
|
|
|
TERMUX_PKG_PLATFORM_INDEPENDENT=true
|
2020-12-10 21:04:30 +01:00
|
|
|
|
|
|
|
termux_step_make_install() {
|
|
|
|
composer install
|
|
|
|
php -d phar.readonly=Off bin/compile
|
|
|
|
install -Dm700 composer.phar $TERMUX_PREFIX/bin/composer
|
|
|
|
}
|