diff options
author | Matt Harrison | 2021-11-10 11:20:02 -0500 |
---|---|---|
committer | Matt Harrison | 2021-11-10 11:20:02 -0500 |
commit | 817ffdef4b1a080a556e5667cc9d1abe69b9bc58 (patch) | |
tree | 36d0029736b5fc4472ecf5fdffead38ade89aa78 | |
download | aur-817ffdef4b1a080a556e5667cc9d1abe69b9bc58.tar.gz |
Initial upload: php-codesniffer-woocommerce 0.1.1-1
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 24 |
2 files changed, 38 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..3732768f45a3 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = php-codesniffer-woocommerce + pkgdesc = PHP CodeSniffer rules (sniffs) for WooCommerce. + pkgver = 0.1.1 + pkgrel = 1 + url = https://github.com/woocommerce/woocommerce-sniffs + arch = any + license = LGPL + depends = php-codesniffer + depends = php-codesniffer-wordpress + depends = php-codesniffer-phpcompatibilitywp + source = php-codesniffer-woocommerce-0.1.1.tar.gz::https://github.com/woocommerce/woocommerce-sniffs/archive/refs/tags/0.1.1.tar.gz + sha256sums = 6e055cafa8d8dd3be9489bda68bc9c103395392aecd52d36265d15b0111bce1a + +pkgname = php-codesniffer-woocommerce diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c4bd8d504889 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer: Matt Harrison <matt@harrison.us.com> +# Maintained at: https://github.com/matt-h/aur-pkgbuilds + +pkgname=php-codesniffer-woocommerce +_pkgname=woocommerce-sniffs +pkgver=0.1.1 +pkgrel=1 +pkgdesc="PHP CodeSniffer rules (sniffs) for WooCommerce." +arch=('any') +url="https://github.com/woocommerce/woocommerce-sniffs" +license=('LGPL') +depends=('php-codesniffer' 'php-codesniffer-wordpress' 'php-codesniffer-phpcompatibilitywp') +makedepends=() +source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/${pkgver}.tar.gz") +sha256sums=('6e055cafa8d8dd3be9489bda68bc9c103395392aecd52d36265d15b0111bce1a') + +package() { + install -d "${pkgdir}/usr/share/pear/PHP/CodeSniffer/Standards/WooCommerce" + cp -dr --no-preserve=ownership "${srcdir}/${_pkgname}-${pkgver}/src/WooCommerce/" "${pkgdir}/usr/share/pear/PHP/CodeSniffer/Standards/" + install -d "${pkgdir}/usr/share/pear/PHP/CodeSniffer/Standards/WooCommerce-Core" + cp -dr --no-preserve=ownership "${srcdir}/${_pkgname}-${pkgver}/src/WooCommerce-Core/" "${pkgdir}/usr/share/pear/PHP/CodeSniffer/Standards/" +} + +# vim:set ts=2 sw=2 et: |