summaryrefslogtreecommitdiff
path: root/php-fcgi/Pkgfile
blob: 229fb340cf8f48d5c6f7a65132f788d197f9bb5b (plain)
    1 # Description: CGI/FastCGI version of the PHP interpreter
    2 # URL: https://www.php.net
    3 # Maintainer: Juergen Daubert, jue at crux dot nu
    4 # Depends on: libpcre2 libxml2
    5 
    6 name=php-fcgi
    7 version=8.1.10
    8 release=1
    9 source=(https://php.net/distributions/php-$version.tar.xz
   10 	php-fcgi)
   11 
   12 build() {
   13 	cd php-$version
   14 
   15 	local PHP_CONFIG="
   16 	--prefix=/usr \
   17 	--with-config-file-path=/etc/php \
   18 	--with-config-file-scan-dir=/etc/php/conf.d \
   19 	--with-zlib \
   20 	--with-external-pcre \
   21 	--disable-static --disable-debug \
   22 	--without-sqlite3 --without-pdo-sqlite \
   23 	--without-pear"
   24 
   25 	EXTENSION_DIR=/usr/lib/php/extensions \
   26 	./configure \
   27 		$PHP_CONFIG \
   28 		--enable-cgi \
   29 		--disable-cli
   30 
   31 	make
   32 
   33 	install -D -m 755 sapi/cgi/php-cgi $PKG/usr/bin/php-cgi
   34 	install -D -m 755 $SRC/php-fcgi $PKG/etc/rc.d/php-fcgi
   35 }

Generated by cgit