slackbuilds_ponce/libraries/php-imagick/doinst.sh
Heinz Wiesinger 422c31f20b libraries/php-imagick: Updated for version 3.1.2.
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
2013-11-11 15:13:30 -06:00

17 lines
508 B
Bash

config() {
NEW="$1"
OLD="$(dirname $NEW)/$(basename $NEW .new)"
# If there's no config file by that name, mv it over:
if [ ! -r $OLD ]; then
mv $NEW $OLD
elif [ "$(cat $OLD|md5sum)" = "$(cat $NEW|md5sum)" ]; then
# toss the redundant copy
rm $NEW
fi
# Otherwise, we leave the .new copy for the admin to consider...
}
config etc/php/imagick.ini.new
/usr/bin/pecl install --nodeps --soft --force --register-only --nobuild \
usr/libLIBDIRSUFFIX/php/.pkgxml/imagick.xml > /dev/null