1
0
Fork 0
mirror of https://github.com/engineer-man/piston.git synced 2025-05-03 02:16:26 +02:00
piston/packages/php/8.0.2/build.sh
2021-03-15 19:38:57 +13:00

20 lines
301 B
Bash
Executable file

#!/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