summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSander Boom2018-02-07 12:16:43 +0100
committerSander Boom2018-02-07 12:16:43 +0100
commitc2ceeb731ab8b730d1dcc49fff556dbe90756e56 (patch)
treeac6e22607a6783a2dfb0f24d37b2b32beae7f57d
parentdfff21261fdab26b09cfa2314d0847a88a172a99 (diff)
downloadaur-c2ceeb731ab8b730d1dcc49fff556dbe90756e56.tar.gz
Add versionnumber to upstream files to avoid problems with cache for certain AUR helpers.
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD22
2 files changed, 23 insertions, 15 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7bbefcd11d9..48fdbb95aa9 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,18 +1,22 @@
# Generated by mksrcinfo v8
-# Mon Feb 5 15:25:29 UTC 2018
+# Wed Feb 7 11:14:17 UTC 2018
pkgbase = php-codesniffer
pkgdesc = PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files to detect and fix violations of a defined set of coding standards.
pkgver = 3.2.2
- pkgrel = 1
+ pkgrel = 2
url = http://pear.php.net/package/PHP_CodeSniffer/
arch = any
- license = BSD
+ license = custom
depends = php
- source = https://github.com/squizlabs/PHP_CodeSniffer/releases/download/3.2.2/phpcs.phar
- source = https://github.com/squizlabs/PHP_CodeSniffer/releases/download/3.2.2/phpcbf.phar
- source = https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/3.2.2/licence.txt
+ source = phpcs-3.2.2.phar::https://github.com/squizlabs/PHP_CodeSniffer/releases/download/3.2.2/phpcs.phar
+ source = phpcs-3.2.2.phar.asc::https://github.com/squizlabs/PHP_CodeSniffer/releases/download/3.2.2/phpcs.phar.asc
+ source = phpcbf-3.2.2.phar::https://github.com/squizlabs/PHP_CodeSniffer/releases/download/3.2.2/phpcbf.phar
+ source = phpcbf-3.2.2.phar.asc::https://github.com/squizlabs/PHP_CodeSniffer/releases/download/3.2.2/phpcbf.phar.asc
+ source = licence-3.2.2.txt::https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/3.2.2/licence.txt
sha256sums = c934737207f3baf2d36187a43ed4bd005a70eae65f16cf22ca4eed32a69aca2a
+ sha256sums = e3069813cfaf176f753a2049759adf82b6a733cf756a01a8dc47d153c1645963
sha256sums = 7ad5e782411f4b8944a0bfab7d70b782c3133c921fd237b8227567186ef71f52
+ sha256sums = c0413d63e79347f00fcc9258dd0f1b6eb80cfb4f98d4b28252273a096de0cc35
sha256sums = 821c1697ab88bb71a5d1637743024e455d87074b8a5d0732f85205bd40cba6c9
pkgname = php-codesniffer
diff --git a/PKGBUILD b/PKGBUILD
index f0197db8732..9e1dcd55431 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,29 +4,33 @@
pkgname=php-codesniffer
_pkgname=PHP_CodeSniffer
pkgver=3.2.2
-pkgrel=1
+pkgrel=2
pkgdesc="PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files to detect and fix violations of a defined set of coding standards."
arch=('any')
url="http://pear.php.net/package/PHP_CodeSniffer/"
-license=('BSD')
+license=('custom')
depends=('php')
-source=("https://github.com/squizlabs/${_pkgname}/releases/download/${pkgver}/phpcs.phar"
- "https://github.com/squizlabs/${_pkgname}/releases/download/${pkgver}/phpcbf.phar"
- "https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/${pkgver}/licence.txt")
-
+source=("phpcs-${pkgver}.phar::https://github.com/squizlabs/${_pkgname}/releases/download/${pkgver}/phpcs.phar"
+ "phpcs-${pkgver}.phar.asc::https://github.com/squizlabs/${_pkgname}/releases/download/${pkgver}/phpcs.phar.asc"
+ "phpcbf-${pkgver}.phar::https://github.com/squizlabs/${_pkgname}/releases/download/${pkgver}/phpcbf.phar"
+ "phpcbf-${pkgver}.phar.asc::https://github.com/squizlabs/${_pkgname}/releases/download/${pkgver}/phpcbf.phar.asc"
+ "licence-${pkgver}.txt::https://raw.githubusercontent.com/squizlabs/${_pkgname}/${pkgver}/licence.txt")
+validpgpkeys=('A972B9ABB95D0B760B51442231C7E470E2138192')
sha256sums=('c934737207f3baf2d36187a43ed4bd005a70eae65f16cf22ca4eed32a69aca2a'
+ 'e3069813cfaf176f753a2049759adf82b6a733cf756a01a8dc47d153c1645963'
'7ad5e782411f4b8944a0bfab7d70b782c3133c921fd237b8227567186ef71f52'
+ 'c0413d63e79347f00fcc9258dd0f1b6eb80cfb4f98d4b28252273a096de0cc35'
'821c1697ab88bb71a5d1637743024e455d87074b8a5d0732f85205bd40cba6c9')
package() {
install -d "${pkgdir}/usr/share/webapps/bin"
- install -D -m 755 "${srcdir}/phpcs.phar" "${pkgdir}/usr/share/webapps/bin/phpcs.phar"
- install -D -m 755 "${srcdir}/phpcbf.phar" "${pkgdir}/usr/share/webapps/bin/phpcbf.phar"
+ install -D -m 755 "${srcdir}/phpcs-${pkgver}.phar" "${pkgdir}/usr/share/webapps/bin/phpcs.phar"
+ install -D -m 755 "${srcdir}/phpcbf-${pkgver}.phar" "${pkgdir}/usr/share/webapps/bin/phpcbf.phar"
install -d "${pkgdir}/usr/bin"
ln -s "/usr/share/webapps/bin/phpcs.phar" "${pkgdir}/usr/bin/phpcs"
ln -s "/usr/share/webapps/bin/phpcbf.phar" "${pkgdir}/usr/bin/phpcbf"
install -d "${pkgdir}/usr/share/licenses"
- install -D -m 644 "${srcdir}/licence.txt" "${pkgdir}/usr/share/licenses/${pkgname}/licence.txt"
+ install -D -m 644 "${srcdir}/licence-${pkgver}.txt" "${pkgdir}/usr/share/licenses/${pkgname}/licence.txt"
}