# Description: Framework and distribution system for reusable PHP components
# URL: https://pear.php.net/
# Maintainer: Juergen Daubert, jue at crux dot nu
# Depends on: php

name=pear
version=1.10.14
release=1
source=(https://php.net/distributions/php-8.3.1.tar.xz)

build() {
	cd php-8.3.1/pear

	export PHP_PEAR_SYSCONF_DIR=/etc/php
	export INSTALL_ROOT=$PKG

	php -n install-pear-nozlib.phar

	rm -r $PKG/.{filemap,lock,depdb*,channels,registry}
	rm -r $PKG/usr/lib/php/pear/{docs,tests}
}
