diff options
author | Stefan Auditor | 2016-01-04 14:07:10 +0100 |
---|---|---|
committer | Stefan Auditor | 2016-01-04 14:07:10 +0100 |
commit | f09555d925f66446819783174e68d55b057dca25 (patch) | |
tree | 037c1fd148c76287d046f87a577a5e308684f82a | |
parent | 715de7ca6b03e3ca5f8cfe78bddb491b1d4279d8 (diff) | |
download | aur-f09555d925f66446819783174e68d55b057dca25.tar.gz |
Adjust package to follow PHP 7 packaging changes
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 2 | ||||
-rw-r--r-- | phpunit.install | 6 |
3 files changed, 7 insertions, 5 deletions
@@ -1,9 +1,9 @@ # Generated by mksrcinfo v8 -# Thu Dec 10 14:23:49 UTC 2015 +# Mon Jan 4 13:06:50 UTC 2016 pkgbase = phpunit pkgdesc = PHPUnit is a programmer-oriented testing framework for PHP. pkgver = 5.1.3 - pkgrel = 1 + pkgrel = 2 url = https://phpunit.de install = phpunit.install arch = any @@ -3,7 +3,7 @@ # Contributor: Attila Bukor <r1pp3rj4ck [at] w4it [dot] eu> pkgname=phpunit pkgver=5.1.3 -pkgrel=1 +pkgrel=2 pkgdesc="PHPUnit is a programmer-oriented testing framework for PHP." url="https://phpunit.de" arch=("any") diff --git a/phpunit.install b/phpunit.install index e98ff10b1b95..2d15577a8d0d 100644 --- a/phpunit.install +++ b/phpunit.install @@ -1,6 +1,8 @@ post_install() { - echo - echo "Warning: phar.so must be enabled and date.timezone set in your php.ini" + if ! php -i | grep 'date.timezone => no value => no value' >/dev/null 2>&1; then + echo -e "Warning: The date.timezone setting must be set in your php.ini" + echo -e "You may use \"sed -i 's/;date.timezone =/date.timezone = Europe\/Berlin/g' /etc/php/php.ini\" to change your configuration" + fi echo "Note: You should load /usr/share/webapps/bin/phpunit.phar in your IDE" } |