opt/php-fcgi/Pkgfile
Juergen Daubert e67dc4ac37 [notify] php: update to 8.0.7
new major version, several applications needs probably some
adjustments.

See https://www.php.net/releases/8.0/en.php
2021-06-05 17:02:30 +02:00

36 lines
786 B
Plaintext

# Description: CGI/FastCGI version of the PHP interpreter
# URL: https://www.php.net
# Maintainer: Juergen Daubert, jue at crux dot nu
# Depends on: libpcre2 libxml2
name=php-fcgi
version=8.0.7
release=1
source=(https://php.net/distributions/php-$version.tar.xz
php-fcgi)
build() {
cd php-$version
local PHP_CONFIG="
--prefix=/usr \
--with-config-file-path=/etc/php \
--with-config-file-scan-dir=/etc/php/conf.d \
--with-zlib \
--with-external-pcre \
--disable-static --disable-debug \
--without-sqlite3 --without-pdo-sqlite \
--without-pear"
EXTENSION_DIR=/usr/lib/php/extensions \
./configure \
$PHP_CONFIG \
--enable-cgi \
--disable-cli
make
install -D -m 755 sapi/cgi/php-cgi $PKG/usr/bin/php-cgi
install -D -m 755 $SRC/php-fcgi $PKG/etc/rc.d/php-fcgi
}