diff options
-rw-r--r-- | main/php/APKBUILD | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/main/php/APKBUILD b/main/php/APKBUILD index 04d45bcc60..3af1f9123a 100644 --- a/main/php/APKBUILD +++ b/main/php/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Matt Smith <mcs@darkregion.net> pkgname=php pkgver=5.5.4 -pkgrel=0 +pkgrel=1 pkgdesc="The PHP language runtime engine" url="http://www.php.net/" arch="all" @@ -421,7 +421,14 @@ _mv_ext() { mkdir -p "$subpkgdir"/$_extdir mv "$pkgdir"/$_extdir/${ext}.so "$subpkgdir"/$_extdir/ || return 1 mkdir -p "$subpkgdir"/etc/php/conf.d - echo "extension=${ext}.so" > "$subpkgdir"/etc/php/conf.d/$ini + case "$1" in + opcache) + echo "zend_extension=${ext}.so" > "$subpkgdir"/etc/php/conf.d/$ini + ;; + *) + echo "extension=${ext}.so" > "$subpkgdir"/etc/php/conf.d/$ini + ;; + esac } bcmath() { _mv_ext bcmath; } |