aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--community/php7/APKBUILD24
1 files changed, 16 insertions, 8 deletions
diff --git a/community/php7/APKBUILD b/community/php7/APKBUILD
index 8e5e982cfb..5d4e040c67 100644
--- a/community/php7/APKBUILD
+++ b/community/php7/APKBUILD
@@ -26,7 +26,7 @@
pkgname=php7
_pkgreal=php
pkgver=7.4.22
-pkgrel=1
+pkgrel=0
_apiver=20190902
_suffix=${pkgname#php}
# Is this package the default (latest) PHP version?
@@ -84,7 +84,7 @@ makedepends="
"
provides="$pkgname-cli php-cli php" # for backward compatibility
provider_priority=100
-subpackages="$pkgname-dbg $pkgname-dev $pkgname-doc
+subpackages="$pkgname-static $pkgname-dev $pkgname-dbg $pkgname-doc
$pkgname-phpdbg $pkgname-apache2
$pkgname-embed $pkgname-cgi $pkgname-fpm
$pkgname-pear::noarch
@@ -297,6 +297,7 @@ _build() {
--localstatedir=/var \
--with-layout=GNU \
--with-pic \
+ --with-pear=/usr/share/$pkgname \
--with-config-file-path=/etc/$pkgname \
--with-config-file-scan-dir=$_extension_confd \
--disable-short-tags \
@@ -382,16 +383,21 @@ _build() {
}
build() {
- # apache2 SAPIs because not fixed https://bugs.php.net/bug.php?id=52419
+ # phpdbg
+ _build --enable-phpdbg \
+ --enable-phpdbg-webhelper \
+ --disable-cgi \
+ --disable-cli
+
+ # apache2 module
_build --disable-phpdbg \
+ --disable-cgi \
--disable-cli \
--with-apxs2
mv libs/libphp$_suffix.so sapi/apache2handler/mod_php$_suffix.so
- # cgi, cli, fpm, embed, pear
- _build --enable-phpdbg \
- --enable-phpdbg-webhelper \
- --with-pear=/usr/share/$pkgname \
+ # cgi, cli, fpm, embed, litespeed
+ _build --disable-phpdbg \
--enable-fpm \
--enable-embed
}
@@ -445,6 +451,7 @@ package() {
dev() {
default_dev
replaces="php-dev"
+ depends="$depends $pkgname-static"
cd "$pkgdir"
@@ -487,7 +494,8 @@ phpdbg() {
pkgdesc="Interactive PHP$_suffix debugger"
provides="php-phpdbg"
- amove usr/bin/phpdbg$_suffix
+ install -Dm755 "$builddir"/sapi/phpdbg/phpdbg \
+ "$subpkgdir"/usr/bin/phpdbg$_suffix
if [ "$_default_php" = yes ]; then
ln -s phpdbg$_suffix "$subpkgdir"/usr/bin/phpdbg