# Description: FTP module for PHP
# URL: https://www.php.net
# Maintainer: Juergen Daubert, jue at crux dot nu

name=php-ftp
version=8.3.6
release=1
source=(https://www.php.net/distributions/php-$version.tar.xz)

build() {
	cd php-$version

	./configure --disable-all --enable-ftp=shared
	make build-modules

	install -d $PKG/{etc/php/conf.d,usr/lib/php/extensions}
	install -m 755 modules/ftp.so $PKG/usr/lib/php/extensions/

	printf 'extension=%s\n' ftp.so > $PKG/etc/php/conf.d/ftp.ini
}
