1
0
mirror of https://github.com/termux/termux-packages synced 2024-06-18 23:17:04 +00:00
termux-packages/packages/php-imagick/build.sh
Henrik Grimler ac991b4167
rebuild(main/php-*): rebuild after php upgrade to 8.2
Have not tested all addons, but at least php-redis and php-imagick
fails to load after update:
  $ php -dextension=redis.so

  Warning: PHP Startup: Unable to load dynamic library 'redis.so' (tried: /data/data/com.termux/files/usr/lib/php/redis.so (dlopen failed: cannot locate symbol "_zend_get_parameters_array_ex" referenced by "/data/data/com.termux/files/usr/lib/php/redis.so"...), /data/data/com.termux/files/usr/lib/php/redis.so.so (dlopen failed: library "/data/data/com.termux/files/usr/lib/php/redis.so.so" not found)) in Unknown on line 0

  $ php -dextension=imagick.so

  Warning: PHP Startup: imagick: Unable to initialize module
  Module compiled with module API=20210902
  PHP    compiled with module API=20220829
  These options need to match
   in Unknown on line 0

Rebuild all our addons to fix these issues.
2022-12-27 14:57:53 +01:00

17 lines
620 B
Bash

TERMUX_PKG_HOMEPAGE=https://github.com/Imagick/imagick
TERMUX_PKG_DESCRIPTION="The Imagick PHP extension"
TERMUX_PKG_LICENSE="PHP-3.01"
TERMUX_PKG_LICENSE_FILE=LICENSE
TERMUX_PKG_MAINTAINER="ian4hu <hu2008yinxiang@163.com>"
TERMUX_PKG_VERSION=3.7.0
TERMUX_PKG_REVISION=2
TERMUX_PKG_SRCURL=https://github.com/Imagick/imagick/archive/refs/tags/${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=aa2e311efb7348350c7332876252720af6fb71210d13268de765bc41f51128f9
TERMUX_PKG_DEPENDS="php, imagemagick"
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_UPDATE_TAG_TYPE="newest-tag"
termux_step_pre_configure() {
$TERMUX_PREFIX/bin/phpize
}