~shulhan/aur-php-cs-fixer

1a134a30ea0e3541dbe6eb03c2f842e18ee5dcdd — Shulhan 2 months ago 0971a5d master
all: add version suffix to downloaded file

Without version suffix, the existing file name is considered exist
and the checksum will fail if we update the version.
2 files changed, 6 insertions(+), 7 deletions(-)

M .SRCINFO
M PKGBUILD
M .SRCINFO => .SRCINFO +1 -1
@@ 6,7 6,7 @@ pkgbase = php-cs-fixer
	arch = any
	license = MIT
	conflicts = php-cs-fixer-git
	source = php-cs-fixer.phar::https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/releases/download/v3.41.1/php-cs-fixer.phar
	source = php-cs-fixer-v3.41.1.phar::https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/releases/download/v3.41.1/php-cs-fixer.phar
	source = LICENSE
	sha256sums = d573897395907c7cd47fe14e4a2d95adc4f88b2e3f5a88188751d90221b08d8d
	sha256sums = 2328ecf7ed904804f5e9f9c70762d2e0baf6610d872c611bbddca94baa970549

M PKGBUILD => PKGBUILD +5 -6
@@ 1,9 1,8 @@
# Mantainer: Shulhan <ms@kilabit.info>
# Maintainer: Bruno Galeotti <bgaleotti at gmail dot com>
# Co-Mantainer: Stefan Auditor <stefan@auditor.email>
# Mantainer: Shulhan <ms@kilabit.info>

_pkgname=php-cs-fixer
pkgname=${_pkgname}
pkgname=php-cs-fixer
pkgver=3.41.1
pkgrel=1
pkgdesc="Analyzes some PHP source code and tries to fix coding standards issues (PSR-1 and PSR-2 compatible)."


@@ 12,7 11,7 @@ conflicts=(php-cs-fixer-git)
license=("MIT")
arch=("any")
source=(
	"${_pkgname}.phar::https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/releases/download/v${pkgver}/php-cs-fixer.phar"
	"${pkgname}-v${pkgver}.phar::https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/releases/download/v${pkgver}/php-cs-fixer.phar"
	'LICENSE'
)
sha256sums=(


@@ 22,6 21,6 @@ sha256sums=(

package() {
  cd "${srcdir}/"
  install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
  install -D -m755 "${_pkgname}.phar" "${pkgdir}/usr/bin/${_pkgname}"
  install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  install -D -m755 "${pkgname}-v${pkgver}.phar" "${pkgdir}/usr/bin/${pkgname}"
}