summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Auditor2016-01-04 14:07:10 +0100
committerStefan Auditor2016-01-04 14:07:10 +0100
commitf09555d925f66446819783174e68d55b057dca25 (patch)
tree037c1fd148c76287d046f87a577a5e308684f82a
parent715de7ca6b03e3ca5f8cfe78bddb491b1d4279d8 (diff)
downloadaur-f09555d925f66446819783174e68d55b057dca25.tar.gz
Adjust package to follow PHP 7 packaging changes
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD2
-rw-r--r--phpunit.install6
3 files changed, 7 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 85661135ff9e..5606e430e6f0 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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
diff --git a/PKGBUILD b/PKGBUILD
index bc90edf3411a..7d0fe6720a26 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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"
}