mirror of
https://github.com/danog/file.git
synced 2024-12-04 10:17:52 +01:00
27 lines
628 B
Bash
27 lines
628 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
set -e
|
||
|
|
||
|
wget https://github.com/libuv/libuv/archive/v1.24.1.tar.gz -O /tmp/libuv.tar.gz -q &
|
||
|
wget https://github.com/bwoebi/php-uv/archive/master.tar.gz -O /tmp/php-uv.tar.gz -q &
|
||
|
wait
|
||
|
|
||
|
mkdir libuv && tar -xf /tmp/libuv.tar.gz -C libuv --strip-components=1
|
||
|
mkdir php-uv && tar -xf /tmp/php-uv.tar.gz -C php-uv --strip-components=1
|
||
|
|
||
|
pushd libuv;
|
||
|
./autogen.sh
|
||
|
./configure --prefix=$(dirname `pwd`)/libuv-install
|
||
|
make -j4
|
||
|
make install
|
||
|
popd
|
||
|
|
||
|
pushd php-uv
|
||
|
phpize
|
||
|
./configure --with-uv=$(dirname `pwd`)/libuv-install
|
||
|
make -j4
|
||
|
make install
|
||
|
popd
|
||
|
|
||
|
echo "extension=uv.so" >> "$(php -r 'echo php_ini_loaded_file();')"
|