void-packages/srcpkgs/composer8.2/template

28 lines
932 B
Bash

# Template file for 'composer8.2'
pkgname=composer8.2
version=2.8.3
revision=1
build_style=fetch
depends="php8.2"
short_desc="Dependency manager for PHP"
maintainer="Orphaned <orphan@voidlinux.org>"
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="8323b4105c6e166d47c9db93209370083f9e421743636e108c37d8c1126386ef
7855ac293067aebe7e51afdd23b9dea54b8be24187dbecc9b9142581c37f596c"
alternatives="composer:composer:/usr/bin/composer8.2"
do_install() {
vbin ${FILESDIR}/composer8.2
vinstall composer.phar 644 usr/libexec composer.phar8.2
vlicense LICENSE
vmkdir /etc/php8.2/conf.d
printf 'extension=%s\n' phar iconv openssl zip \
>${DESTDIR}/etc/php8.2/conf.d/composer.ini
}