diff options
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 21 |
2 files changed, 3 insertions, 20 deletions
@@ -1,5 +1,5 @@ # Generated by mksrcinfo v8 -# Mon Dec 21 14:59:14 UTC 2015 +# Mon Jan 4 11:08:17 UTC 2016 pkgbase = php-cs-fixer pkgdesc = Analyzes some PHP source code and tries to fix coding standards issues (PSR-1 and PSR-2 compatible). pkgver = 1.11 @@ -16,26 +16,9 @@ sha512sums=('337eeb18b9d6ab41fda772bb3372467a6093a153f336f804b2d2ca1b4631e1ea99f build() { cd "${srcdir}/${_pkgname}-${pkgver}" - php -d extension=phar.so -d open_basedir=~:/usr/:`pwd` /usr/bin/composer install --prefer-dist --no-dev + php /usr/bin/composer install --prefer-dist --no-dev sed -i '/git-commit/d' box.json - php -d extension=phar.so -d phar.readonly=Off /usr/bin/php-box build -} - -check() { - STATUS=0 - - if ! php -i | grep 'PHP Archive support => enabled' >/dev/null 2>&1; then - echo -e "Warning: phar.so must be loaded in your php.ini to install and use ${pkgname}" - STATUS=1 - fi - if ! php -i | grep -E '(:/usr/$|:/usr/:)' >/dev/null 2>&1; then - echo -e "Warning: You must add ':/usr/' to 'open_basedir' setting in your php.ini to use ${pkgname}" - STATUS=1 - fi - - if [ ${STATUS} != 0 ]; then - exit ${STATUS} - fi + php -d phar.readonly=Off /usr/bin/php-box build } package() { |