# Maintainer: Matt Harrison # Maintained at: https://github.com/matt-h/aur-pkgbuilds or https://codeberg.org/matt/aur-pkgbuilds pkgname=php-codesniffer-phpcompatibilitywp _pkgname=PHPCompatibilityWP pkgver=2.1.5 pkgrel=1 pkgdesc="PHP CodeSniffer rules (sniffs) to analyse the codebase of a WordPress-based project for PHP cross-version compatibility." arch=('any') url="https://github.com/PHPCompatibility/PHPCompatibilityWP" license=('LGPL') depends=('php-codesniffer' 'php-codesniffer-phpcompatibility' 'php-codesniffer-phpcompatibilityparagonie') makedepends=() source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/${pkgver}.tar.gz") b2sums=('364eb950f4413e8ae1034612492fee1dd7221d4c98e92a664d3973c546bd9fad9909719eb110e977c481fea43dad8b6aad96ebfeef47acedee7bd8f8e858c4cc') package() { install -d "${pkgdir}/usr/share/pear/PHP/CodeSniffer/Standards/PHPCompatibilityWP" cp -dr --no-preserve=ownership "${srcdir}/${_pkgname}-${pkgver}/PHPCompatibilityWP/" "${pkgdir}/usr/share/pear/PHP/CodeSniffer/Standards/" } # vim:set ts=2 sw=2 et: