Skip to content

Commit 23a1766

Browse files
committed
fix(php): use PR branch to build imagick
remove this after Imagick/imagick#641 has been merged and released.
1 parent 1e7027a commit 23a1766

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

shared/php/rootfs/tmp/install-php.sh

+15-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,21 @@ apk add --no-cache php$PHP_VERSION \
5454
gcc \
5555
musl-dev
5656

57-
pecl$PHP_VERSION install imagick
57+
# install imagick from PR
58+
# https://github.com/Imagick/imagick/pull/641
59+
# replace the routine with this command after PR has been merged:
60+
# pecl$PHP_VERSION install imagick
61+
cd /tmp
62+
wget -O imagick.tar.gz https://github.com/FedericoHeichou/imagick/archive/7088edc353f53c4bc644573a79cdcd67a726ae16.tar.gz
63+
tar xvfz imagick.tar.gz
64+
cd imagick-7088edc353f53c4bc644573a79cdcd67a726ae16
65+
phpize$PHP_VERSION
66+
./configure --with-php-config=/usr/bin/php-config$PHP_VERSION --with-imagick
67+
make
68+
make install
69+
cd /
70+
rm -rf /tmp/imagick*
71+
5872
echo "extension=imagick.so" > /etc/php$PHP_VERSION/conf.d/00_imagick.ini
5973

6074
# remove dev dependencies

0 commit comments

Comments
 (0)