# Maintainer: Bruno Galeotti # Co-Mantainer: Stefan Auditor _pkgname=php-cs-fixer pkgname=${_pkgname} pkgver=3.52.1 pkgrel=1 pkgdesc="Analyzes some PHP source code and tries to fix coding standards issues (PSR-1 and PSR-2 compatible)." url="https://github.com/PHP-CS-Fixer/PHP-CS-Fixer" license=("MIT") arch=("any") depends=("php>=7.4") makedepends=("php-box" "composer" "git") source=("${_pkgname}::git+https://github.com/PHP-CS-Fixer/PHP-CS-Fixer#tag=v${pkgver}") md5sums=('SKIP') prepare() { cd "${srcdir}/${_pkgname}" composer install --no-interaction } build() { cd "${srcdir}/${_pkgname}" box compile --no-interaction } package() { cd "${srcdir}/${_pkgname}" install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE" install -D -m755 "${_pkgname}.phar" "${pkgdir}/usr/bin/${_pkgname}" }