summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSander Boom2015-06-23 22:59:00 +0200
committerSander Boom2015-06-23 22:59:00 +0200
commit719498c613ebc31a4d798a6f2cef286bdf5e6927 (patch)
treee0c1778e6bd4f45da3572002c6d06c1ba8d3fbf9
downloadaur-719498c613ebc31a4d798a6f2cef286bdf5e6927.tar.gz
Initial commit
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD25
2 files changed, 40 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..5cf29c56884
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = php-codesniffer
+ pkgdesc = PHP_CodeSniffer tokenises PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.
+ pkgver = 2.3.2
+ pkgrel = 2
+ url = http://pear.php.net/package/PHP_CodeSniffer/
+ arch = any
+ license = BSD
+ makedepends = php-pear
+ depends = php
+ noextract = PHP_CodeSniffer-2.3.2.tgz
+ source = http://download.pear.php.net/package/PHP_CodeSniffer-2.3.2.tgz
+ sha256sums = 6ebf4ee75425f27995768ecca70c2846c7f450735f09c5f30013ebecf648ac4d
+
+pkgname = php-codesniffer
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3c98d056716
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Sander Boom <sanderboom@gmail.com>
+# Contributor: jarosz
+
+pkgname=php-codesniffer
+_pkgname=PHP_CodeSniffer
+pkgver=2.3.2
+pkgrel=2
+pkgdesc="PHP_CodeSniffer tokenises PHP, JavaScript and CSS files and detects violations of a defined set of coding standards."
+arch=('any')
+url="http://pear.php.net/package/PHP_CodeSniffer/"
+license=('BSD')
+depends=('php')
+makedepends=('php-pear')
+source=("http://download.pear.php.net/package/${_pkgname}-${pkgver}.tgz")
+noextract=("${_pkgname}-${pkgver}.tgz")
+sha256sums=('6ebf4ee75425f27995768ecca70c2846c7f450735f09c5f30013ebecf648ac4d')
+
+package() {
+ pear install -P ${pkgdir} ${srcdir}/${_pkgname}-${pkgver}.tgz
+
+ # Remove PEAR channel metadata etc. from the package (which may cause
+ # filesystem conflicts), thanks skremiec.
+ cd ${pkgdir}/usr/share/pear
+ rm -r $(ls -A | grep '^\.')
+}