summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD14
2 files changed, 6 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index cf992a17a80..b22c72e7cb0 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,5 +1,5 @@
# Generated by mksrcinfo v8
-# Fri Jan 22 10:06:05 UTC 2016
+# Fri Jan 22 10:23:49 UTC 2016
pkgbase = php-codesniffer-drupal
pkgdesc = Drupal coding standard for PHP_CodeSniffer
pkgver = 8.x_2.5
diff --git a/PKGBUILD b/PKGBUILD
index 557ce55c34f..fb532bd6057 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,8 @@
# Maintainer: Stefan Auditor <stefan.auditor@erdfisch.de>
# Contributor: Joris Steyn <jorissteyn@gmail.com>
-pkgname=php-codesniffer-drupal
+_pkgname=php-codesniffer-drupal
+pkgname=${_pkgname}
pkgver=8.x_2.5
_pkgver=${pkgver//[_]/-}
pkgrel=1
@@ -11,17 +12,12 @@ url="http://drupal.org/project/coder"
license=("GPL")
depends=("php-codesniffer")
makedepends=("git")
-source=("${pkgname}"::"git+https://git.drupal.org/project/coder.git")
+source=("${_pkgname}"::"git+https://git.drupal.org/project/coder.git")
sha512sums=('SKIP')
-pkgver() {
- cd "${pkgname}"
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
-}
-
package() {
install -d "${pkgdir}/usr/share/pear/PHP/CodeSniffer/Standards/Drupal"
- cp -dr --no-preserve=ownership "${srcdir}/${pkgname}/coder_sniffer/Drupal/" "${pkgdir}/usr/share/pear/PHP/CodeSniffer/Standards/"
+ cp -dr --no-preserve=ownership "${srcdir}/${_pkgname}/coder_sniffer/Drupal/" "${pkgdir}/usr/share/pear/PHP/CodeSniffer/Standards/"
install -d "${pkgdir}/usr/share/pear/PHP/CodeSniffer/Standards/DrupalPractice"
- cp -dr --no-preserve=ownership "${srcdir}/${pkgname}/coder_sniffer/DrupalPractice/" "${pkgdir}/usr/share/pear/PHP/CodeSniffer/Standards/"
+ cp -dr --no-preserve=ownership "${srcdir}/${_pkgname}/coder_sniffer/DrupalPractice/" "${pkgdir}/usr/share/pear/PHP/CodeSniffer/Standards/"
}