2021-03-05 13:35:35 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
mkdir -p build/tmp 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 /piston/packages/php/8.0.2/php-8.0.2
|
|
|
|
|
|
|
|
make -j$(nproc)
|
|
|
|
INSTALL_ROOT=build/tmp make install -j$(nproc)
|
|
|
|
|
|
|
|
|
2021-03-06 07:43:09 +01:00
|
|
|
mv build/tmp/piston/packages/php/8.0.2/php-8.0.2 ../../php-8.0.2
|
2021-03-05 13:35:35 +01:00
|
|
|
|
|
|
|
|