diff options
-rw-r--r-- | PKGBUILD | 3 | ||||
-rw-r--r-- | phpdcd.install | 12 |
2 files changed, 14 insertions, 1 deletions
@@ -3,7 +3,7 @@ pkgname="phpdcd" pkgver=1.0.2 -pkgrel=3 +pkgrel=4 pkgdesc="Dead Code Detector (DCD) for PHP code." url="https://github.com/sebastianbergmann/phpdcd" license="BSD" @@ -13,6 +13,7 @@ source=( "https://phar.phpunit.de/${pkgname}-${pkgver}.phar" "LICENSE" ) +install="${pkgname}.install" sha1sums=( "f2052a9c143d79057257497e5fcf3c7275ebd065" "11946e2ec7349724cf1cd711cd7fddf2dae82475" diff --git a/phpdcd.install b/phpdcd.install new file mode 100644 index 000000000000..72360306f81f --- /dev/null +++ b/phpdcd.install @@ -0,0 +1,12 @@ +post_install() { + if ! /usr/bin/php -i | grep Phar >/dev/null; then + echo + echo "the Phar extension of php must be enabled." + echo + echo "check if the line extension=phar.so is commented out in your php.ini" + echo + fi +} +post_upgrade() { + post_install +}
\ No newline at end of file |