From 91d4d402de94b05fc30fe3262a2a19eebe8cda7b Mon Sep 17 00:00:00 2001 From: RVG|lory <87276663+LoryPelli@users.noreply.github.com> Date: Fri, 7 Apr 2023 19:40:10 +0200 Subject: [PATCH] Updated to `PHP 8.2.3` --- packages/php/8.2.3/build.sh | 20 ++++++++++++++++++++ packages/php/8.2.3/environment | 1 + packages/php/8.2.3/metadata.json | 5 +++++ packages/php/8.2.3/run | 3 +++ packages/php/8.2.3/test.php | 1 + 5 files changed, 30 insertions(+) create mode 100644 packages/php/8.2.3/build.sh create mode 100644 packages/php/8.2.3/environment create mode 100644 packages/php/8.2.3/metadata.json create mode 100644 packages/php/8.2.3/run create mode 100644 packages/php/8.2.3/test.php diff --git a/packages/php/8.2.3/build.sh b/packages/php/8.2.3/build.sh new file mode 100644 index 0000000..ee85017 --- /dev/null +++ b/packages/php/8.2.3/build.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +PREFIX=$(realpath $(dirname $0)) + +mkdir -p build/php +cd build + +curl "https://www.php.net/distributions/php-8.2.3.tar.gz" -o php.tar.gz +tar xzf php.tar.gz --strip-components=1 -C php + +cd php + + +./configure --prefix "$PREFIX" + +make -j$(nproc) +make install -j$(nproc) + +cd ../../ +rm -rf build \ No newline at end of file diff --git a/packages/php/8.2.3/environment b/packages/php/8.2.3/environment new file mode 100644 index 0000000..bd0ff98 --- /dev/null +++ b/packages/php/8.2.3/environment @@ -0,0 +1 @@ +export PATH=$PWD/bin:$PATH \ No newline at end of file diff --git a/packages/php/8.2.3/metadata.json b/packages/php/8.2.3/metadata.json new file mode 100644 index 0000000..5f256e0 --- /dev/null +++ b/packages/php/8.2.3/metadata.json @@ -0,0 +1,5 @@ +{ + "language": "php", + "version": "8.2.3", + "aliases": [] +} \ No newline at end of file diff --git a/packages/php/8.2.3/run b/packages/php/8.2.3/run new file mode 100644 index 0000000..1261d95 --- /dev/null +++ b/packages/php/8.2.3/run @@ -0,0 +1,3 @@ +#!/bin/bash + +php "$@" \ No newline at end of file diff --git a/packages/php/8.2.3/test.php b/packages/php/8.2.3/test.php new file mode 100644 index 0000000..a0aba93 --- /dev/null +++ b/packages/php/8.2.3/test.php @@ -0,0 +1 @@ +OK \ No newline at end of file