diff --git a/pkg/build/pipelines/pecl/install.yaml b/pkg/build/pipelines/pecl/install.yaml new file mode 100644 index 000000000..d56f11a3b --- /dev/null +++ b/pkg/build/pipelines/pecl/install.yaml @@ -0,0 +1,17 @@ +name: Installs and enables a PHP PECL module. + +needs: + packages: + - automake + - busybox + +inputs: + extension: + description: Name of the PECL extension to install. + required: true + +pipeline: + - runs: | + make INSTALL_ROOT="${{targets.destdir}}" install + install -d ${{targets.destdir}}/etc/php/conf.d + echo "extension=${{inputs.extension}}" > ${{targets.destdir}}/etc/php/conf.d/${{inputs.extension}}.ini diff --git a/pkg/build/pipelines/pecl/phpize.yaml b/pkg/build/pipelines/pecl/phpize.yaml new file mode 100644 index 000000000..3e9f42c64 --- /dev/null +++ b/pkg/build/pipelines/pecl/phpize.yaml @@ -0,0 +1,19 @@ +name: PHP phpize and configure a PHP PECL module. Requires php-dev version to be installed. + +needs: + packages: + - autoconf + - busybox + +inputs: + php-config: + description: php-config to use + default: "php-config" + prefix: + description: prefix to use for configure + default: "/usr" + +pipeline: + - runs: | + phpize + ./configure --prefix=${{inputs.prefix}} --with-php-config=${{inputs.php-config}}