From 88f8e0e4ad4f5e2521c4e8f7768fdd66e1a2f62e Mon Sep 17 00:00:00 2001 From: Shulhan Date: Fri, 8 Sep 2023 19:27:46 +0700 Subject: [PATCH] all: update to version 3.26.0 While at it, download the .phar file directly instead of downloading source and building using box. --- .SRCINFO | 13 ++++++------- .gitignore | 4 ++++ LICENSE | 19 +++++++++++++++++++ PKGBUILD | 28 ++++++++++++---------------- 4 files changed, 41 insertions(+), 23 deletions(-) create mode 100644 .gitignore create mode 100644 LICENSE diff --git a/.SRCINFO b/.SRCINFO index cb0968b..67779fa 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,15 +1,14 @@ pkgbase = php-cs-fixer pkgdesc = Analyzes some PHP source code and tries to fix coding standards issues (PSR-1 and PSR-2 compatible). - pkgver = 3.17.0 + pkgver = 3.26.0 pkgrel = 1 url = https://github.com/PHP-CS-Fixer/PHP-CS-Fixer arch = any license = MIT - makedepends = php-box - makedepends = composer - makedepends = git - depends = php>=7.1.3 - source = php-cs-fixer::git+https://github.com/PHP-CS-Fixer/PHP-CS-Fixer#tag=v3.17.0 - md5sums = SKIP + conflicts = php-cs-fixer-git + source = php-cs-fixer.phar::https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/releases/download/v3.26.0/php-cs-fixer.phar + source = LICENSE + sha256sums = eb5525d55fe845b423da9d8b327ff0dd5a20025d03cddaa08aec95fbef6b2501 + sha256sums = 2328ecf7ed904804f5e9f9c70762d2e0baf6610d872c611bbddca94baa970549 pkgname = php-cs-fixer diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..49e1a84 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.phar +*.pkg.tar.* +/pkg/ +/src/ diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..871def0 --- /dev/null +++ b/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2012+ Fabien Potencier, Dariusz RumiƄski + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is furnished +to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/PKGBUILD b/PKGBUILD index dada541..4a67b11 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,31 +1,27 @@ # Maintainer: Bruno Galeotti # Co-Mantainer: Stefan Auditor +# Mantainer: Shulhan _pkgname=php-cs-fixer pkgname=${_pkgname} -pkgver=3.17.0 +pkgver=3.26.0 pkgrel=1 pkgdesc="Analyzes some PHP source code and tries to fix coding standards issues (PSR-1 and PSR-2 compatible)." url="https://github.com/PHP-CS-Fixer/PHP-CS-Fixer" +conflicts=(php-cs-fixer-git) license=("MIT") arch=("any") -depends=("php>=7.1.3") -makedepends=("php-box" "composer" "git") -source=("${_pkgname}::git+https://github.com/PHP-CS-Fixer/PHP-CS-Fixer#tag=v${pkgver}") -md5sums=('SKIP') - -prepare() { - cd "${srcdir}/${_pkgname}" - composer install --no-interaction -} - -build() { - cd "${srcdir}/${_pkgname}" - box compile --no-interaction -} +source=( + "${_pkgname}.phar::https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/releases/download/v${pkgver}/php-cs-fixer.phar" + 'LICENSE' +) +sha256sums=( + 'eb5525d55fe845b423da9d8b327ff0dd5a20025d03cddaa08aec95fbef6b2501' + '2328ecf7ed904804f5e9f9c70762d2e0baf6610d872c611bbddca94baa970549' +) package() { - cd "${srcdir}/${_pkgname}" + cd "${srcdir}/" install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE" install -D -m755 "${_pkgname}.phar" "${pkgdir}/usr/bin/${_pkgname}" } -- 2.45.2