summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Auditor2016-01-22 11:06:50 +0100
committerStefan Auditor2016-01-22 11:06:50 +0100
commit7f6945805fb30ecaf91402de77e622d570c075e5 (patch)
treede4608e58f3f283c98c39f440f72b46162911a3a
parentd427ec50367021582af49f05e256663a695a01c0 (diff)
downloadaur-7f6945805fb30ecaf91402de77e622d570c075e5.tar.gz
Switch to git for download method
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD18
2 files changed, 18 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 6f85a09484b..cf992a17a80 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,16 @@
+# Generated by mksrcinfo v8
+# Fri Jan 22 10:06:05 UTC 2016
pkgbase = php-codesniffer-drupal
pkgdesc = Drupal coding standard for PHP_CodeSniffer
pkgver = 8.x_2.5
pkgrel = 1
url = http://drupal.org/project/coder
arch = any
- license = GPLv2
+ license = GPL
+ makedepends = git
depends = php-codesniffer
- provides = php-codesniffer-drupal
- source = http://ftp.drupal.org/files/projects/coder-8.x-2.5.tar.gz
- sha512sums = 90d3174b5cc96bf1ff8325e507bef542e8cc560411b941c7bce0da9bd81f4bde26e8969a199c08f4afbdc9ef6f2558040bbae5e44dda0ca3f2b164bdf49aa169
+ source = php-codesniffer-drupal::git+https://git.drupal.org/project/coder.git
+ sha512sums = SKIP
pkgname = php-codesniffer-drupal
diff --git a/PKGBUILD b/PKGBUILD
index 01e221095e4..557ce55c34f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,5 +1,6 @@
# Maintainer: Stefan Auditor <stefan.auditor@erdfisch.de>
# Contributor: Joris Steyn <jorissteyn@gmail.com>
+
pkgname=php-codesniffer-drupal
pkgver=8.x_2.5
_pkgver=${pkgver//[_]/-}
@@ -7,15 +8,20 @@ pkgrel=1
pkgdesc="Drupal coding standard for PHP_CodeSniffer"
arch=("any")
url="http://drupal.org/project/coder"
-license=("GPLv2")
+license=("GPL")
depends=("php-codesniffer")
-provides=("php-codesniffer-drupal")
-source=("http://ftp.drupal.org/files/projects/coder-${_pkgver}.tar.gz")
-sha512sums=('90d3174b5cc96bf1ff8325e507bef542e8cc560411b941c7bce0da9bd81f4bde26e8969a199c08f4afbdc9ef6f2558040bbae5e44dda0ca3f2b164bdf49aa169')
+makedepends=("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}/coder/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}/coder/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/"
}