mirror of
https://github.com/engineer-man/piston.git
synced 2025-06-07 18:56:26 +02:00
pkg(php-8.0.2): relocate files
This commit is contained in:
parent
60ec517dcd
commit
7b4e072154
5 changed files with 31 additions and 0 deletions
20
packages/php/8.0.2/build.sh
vendored
Executable file
20
packages/php/8.0.2/build.sh
vendored
Executable file
|
@ -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
|
1
packages/php/8.0.2/environment
vendored
Normal file
1
packages/php/8.0.2/environment
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
export PATH=$PWD/php-8.0.2/bin:$PATH
|
6
packages/php/8.0.2/metadata.json
vendored
Normal file
6
packages/php/8.0.2/metadata.json
vendored
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"language": "php",
|
||||||
|
"version": "8.0.2",
|
||||||
|
"author": "Martin Kos <martinkos007@gmail.com>",
|
||||||
|
"aliases": ["php8","html"]
|
||||||
|
}
|
3
packages/php/8.0.2/run
vendored
Normal file
3
packages/php/8.0.2/run
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
php $*
|
1
packages/php/8.0.2/test.php
vendored
Normal file
1
packages/php/8.0.2/test.php
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
OK
|
Loading…
Add table
Add a link
Reference in a new issue