void-packages/srcpkgs/composer/template
2019-04-09 12:58:15 -03:00

25 lines
846 B
Bash

# Template file for 'composer'
pkgname=composer
version=1.8.5
revision=1
archs=noarch
build_style=fetch
depends="php"
short_desc="Dependency manager for PHP"
maintainer="Alexander Mamay <alexander@mamay.su>"
license="MIT"
homepage="https://getcomposer.org/"
distfiles="https://github.com/composer/composer/releases/download/${version}/composer.phar
https://raw.githubusercontent.com/composer/composer/master/LICENSE"
checksum="6faf282db067f0f7625a5a1d80f4ecd3228ccc9a0388aec1599824c610d5d4e3
7855ac293067aebe7e51afdd23b9dea54b8be24187dbecc9b9142581c37f596c"
do_install() {
vbin composer.phar composer
vlicense LICENSE
vmkdir /etc/php/conf.d
echo "extension=phar" > ${DESTDIR}/etc/php/conf.d/composer.ini
echo "extension=zip" >> ${DESTDIR}/etc/php/conf.d/composer.ini
echo "extension=openssl" >> ${DESTDIR}/etc/php/conf.d/composer.ini
}