void-packages/srcpkgs/composer/template

25 lines
813 B
Bash

# Template file for 'composer'
pkgname=composer
version=2.5.3
revision=1
build_style=fetch
depends="php"
short_desc="Dependency manager for PHP"
maintainer="Felipe Nogueira <contato.fnog@gmail.com>"
license="MIT"
homepage="https://getcomposer.org/"
changelog="https://raw.githubusercontent.com/composer/composer/main/CHANGELOG.md"
distfiles="https://github.com/composer/composer/releases/download/${version}/composer.phar
https://raw.githubusercontent.com/composer/composer/main/LICENSE"
checksum="2e1061821951c6a5ece033a025d06296d4a1d056fee2f4bebd35815cf4b1b0f9
7855ac293067aebe7e51afdd23b9dea54b8be24187dbecc9b9142581c37f596c"
do_install() {
vbin composer.phar composer
vlicense LICENSE
vmkdir /etc/php/conf.d
printf 'extension=%s\n' phar iconv openssl zip \
>${DESTDIR}/etc/php/conf.d/composer.ini
}