diff --git a/packages/php/8.0.2/build.sh b/packages/php/8.0.2/build.sh new file mode 100755 index 0000000..0a94615 --- /dev/null +++ b/packages/php/8.0.2/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.0.2.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.0.2/environment b/packages/php/8.0.2/environment new file mode 100644 index 0000000..153022d --- /dev/null +++ b/packages/php/8.0.2/environment @@ -0,0 +1 @@ +export PATH=$PWD/php-8.0.2/bin:$PATH \ No newline at end of file diff --git a/packages/php/8.0.2/metadata.json b/packages/php/8.0.2/metadata.json new file mode 100644 index 0000000..2da0ef9 --- /dev/null +++ b/packages/php/8.0.2/metadata.json @@ -0,0 +1,6 @@ +{ + "language": "php", + "version": "8.0.2", + "author": "Martin Kos ", + "aliases": ["php8","html"] +} \ No newline at end of file diff --git a/packages/php/8.0.2/run b/packages/php/8.0.2/run new file mode 100644 index 0000000..2bce27a --- /dev/null +++ b/packages/php/8.0.2/run @@ -0,0 +1,3 @@ +#!/bin/bash + +php $* \ No newline at end of file diff --git a/packages/php/8.0.2/test.php b/packages/php/8.0.2/test.php new file mode 100644 index 0000000..a0aba93 --- /dev/null +++ b/packages/php/8.0.2/test.php @@ -0,0 +1 @@ +OK \ No newline at end of file