summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Auditor2015-07-16 13:30:24 +0200
committerStefan Auditor2015-07-16 13:30:24 +0200
commitf6c27ac1da77f3a660230ad2bddf5f56a8bf5868 (patch)
tree3282a3d9f91da5df3f6242cb78a8ea6b1590b04b
downloadaur-f6c27ac1da77f3a660230ad2bddf5f56a8bf5868.tar.gz
Initial import
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD20
2 files changed, 34 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d7ccf7c217e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = php-codesniffer-drupal
+ pkgdesc = Drupal coding standard for PHP_CodeSniffer
+ pkgver = 8.x-2.3
+ pkgrel = 2
+ url = http://drupal.org/project/coder
+ arch = any
+ license = GPLv2
+ depends = php-codesniffer
+ provides = php-codesniffer-drupal
+ source = http://ftp.drupal.org/files/projects/coder-8.x-2.3.tar.gz
+ md5sums = a2fda7e9fdf55dc5ad36dd0d482973bd
+
+pkgname = php-codesniffer-drupal
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..300e467889b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,20 @@
+# Maintainer: Stefan Auditor <stefan.auditor@erdfisch.de>
+# Contributor: Joris Steyn <jorissteyn@gmail.com>
+pkgname=php-codesniffer-drupal
+pkgver=8.x-2.3
+pkgrel=2
+pkgdesc='Drupal coding standard for PHP_CodeSniffer'
+arch=('any')
+url='http://drupal.org/project/coder'
+license=('GPLv2')
+depends=('php-codesniffer')
+provides=('php-codesniffer-drupal')
+source=('http://ftp.drupal.org/files/projects/coder-8.x-2.3.tar.gz')
+md5sums=('a2fda7e9fdf55dc5ad36dd0d482973bd')
+
+package() {
+ install -d "$pkgdir"/usr/share/pear/PHP/CodeSniffer/Standards/Drupal
+ cp -dr --no-preserve=ownership "$srcdir"/coder/coder_sniffer/Drupal/* "$pkgdir"/usr/share/pear/PHP/CodeSniffer/Standards/Drupal/
+ install -d "$pkgdir"/usr/share/pear/PHP/CodeSniffer/Standards/DrupalPractice
+ cp -dr --no-preserve=ownership "$srcdir"/coder/coder_sniffer/DrupalPractice/* "$pkgdir"/usr/share/pear/PHP/CodeSniffer/Standards/DrupalPractice/
+}