termux-packages/packages/composer/build.sh

17 lines
525 B
Bash
Raw Normal View History

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"
2021-04-27 14:58:54 +02:00
TERMUX_PKG_MAINTAINER="@PuneetGopinath"
2021-06-09 16:43:08 +02:00
TERMUX_PKG_VERSION=2.1.3
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
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
}