summarylogtreecommitdiffstats
path: root/pdepend.install
diff options
context:
space:
mode:
authorStefan Auditor2016-01-04 13:13:19 +0100
committerStefan Auditor2016-01-04 13:13:19 +0100
commit59de44803bb223e37a73a6490a6a270b39159502 (patch)
tree7eb19ddc8c911794247b344f5f4493115614e810 /pdepend.install
parentd8a52c28b7ab8658754861adb79ddcad306f30f1 (diff)
downloadaur-59de44803bb223e37a73a6490a6a270b39159502.tar.gz
Adjust package to follow PHP 7 packaging changes
Diffstat (limited to 'pdepend.install')
-rw-r--r--pdepend.install6
1 files changed, 4 insertions, 2 deletions
diff --git a/pdepend.install b/pdepend.install
index 847b1d455113..0368bd25df68 100644
--- a/pdepend.install
+++ b/pdepend.install
@@ -1,6 +1,8 @@
post_install() {
- echo
- echo "Warning: phar.so and bz2.so must be enabled in your php.ini"
+ if php -i | grep 'bzip2 compression => disabled' >/dev/null 2>&1; then
+ echo -e "Warning: bz2.so must be loaded in your php.ini to use ${pkgname}"
+ echo -e "You may use \"sed -i 's/;extension=bz2.so/extension=bz2.so/g' /etc/php/php.ini\" to change your configuration"
+ fi
}
post_upgrade() {