1 # Maintainer: Pierre Schmitz <pierre@archlinux.de>
6 pkgdesc="Dependency Manager for PHP"
9 url='https://getcomposer.org/'
10 depends=('php' 'unzip')
12 source=("${pkgname}::git+https://github.com/composer/composer.git#tag=${pkgver}"
13 "${pkgname}-${pkgver}.phar::https://getcomposer.org/download/${pkgver}/composer.phar")
15 'd808272f284fa8e0f8b470703e1438ac8f362030bbc9d12e29530277d767aff0')
18 cd "${srcdir}/${pkgname}"
20 php "${srcdir}/${pkgname}-${pkgver}.phar" install --no-interaction --no-dev --no-progress --prefer-dist
24 cd "${srcdir}/${pkgname}"
26 php -d phar.readonly=Off bin/compile
32 mkdir integration-test
35 php "${srcdir}/${pkgname}/composer.phar" init \
38 --name='archlinux/test' \
39 --description='Composer Test Project' \
40 --license='GPL-3.0-or-later' \
41 --require='symfony/console:*'
42 php "${srcdir}/${pkgname}/composer.phar" update --no-interaction --no-progress --prefer-dist
43 php "${srcdir}/${pkgname}/composer.phar" validate --no-interaction
47 cd "${srcdir}/${pkgname}"
49 install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
50 install -Dm755 composer.phar "${pkgdir}/usr/bin/composer"