diff --git a/srcpkgs/php8.1-ast/INSTALL.msg b/srcpkgs/php8.1-ast/INSTALL.msg new file mode 100644 index 0000000000..0dd0b5df2d --- /dev/null +++ b/srcpkgs/php8.1-ast/INSTALL.msg @@ -0,0 +1,2 @@ +To enable the ast extension please add the following to php.ini: + extension=ast.so diff --git a/srcpkgs/php8.1-ast/template b/srcpkgs/php8.1-ast/template new file mode 100644 index 0000000000..549b8fcc1b --- /dev/null +++ b/srcpkgs/php8.1-ast/template @@ -0,0 +1,25 @@ +# Template file for 'php8.1-ast' +pkgname=php8.1-ast +version=1.0.16 +revision=1 +wrksrc="ast-${version}" +build_style=gnu-configure +configure_args="--with-php-config=/usr/bin/php-config8.1" +hostmakedepends="php8.1-devel autoconf" +makedepends="php8.1-devel" +depends="php8.1" +short_desc="Exposes the abstract syntax tree generated by PHP" +maintainer="Joel Beckmeyer " +license="BSD-3-Clause" +homepage="https://github.com/nikic/php-ast" +distfiles="https://pecl.php.net/get/ast-${version}.tgz" +checksum=45bda34b780c4661ce77cf65cd8a504fb56526d4b456edcc97d791c86f3879ce + +pre_configure() { + phpize8.1 +} + +do_install() { + make INSTALL_ROOT=${DESTDIR} install + vlicense LICENSE +}