From 7b4e072154b1b0f6705a65ce24bbc57897fc4eb3 Mon Sep 17 00:00:00 2001 From: Thomas Hobson Date: Sat, 13 Mar 2021 19:52:42 +1300 Subject: [PATCH] pkg(php-8.0.2): relocate files --- packages/php/8.0.2/build.sh | 20 ++++++++++++++++++++ packages/php/8.0.2/environment | 1 + packages/php/8.0.2/metadata.json | 6 ++++++ packages/php/8.0.2/run | 3 +++ packages/php/8.0.2/test.php | 1 + 5 files changed, 31 insertions(+) create mode 100755 packages/php/8.0.2/build.sh create mode 100644 packages/php/8.0.2/environment create mode 100644 packages/php/8.0.2/metadata.json create mode 100644 packages/php/8.0.2/run create mode 100644 packages/php/8.0.2/test.php 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