Now php.sh installs php-libtgvoip, too

This commit is contained in:
Daniil Gentili 2017-06-26 21:07:34 +01:00
parent 2e2feca201
commit 9d2e1efd15

21
php.sh
View File

@ -1,19 +1,19 @@
# If you add some configuration command, add the dependancies here # If you add some configuration command, add the dependencies here
apt-get update apt-get update
apt-get -y dist-upgrade apt-get -y dist-upgrade
apt-get install -y libicu-dev libmcrypt-dev libssl-dev libcurl4-openssl-dev libbz2-dev libxml2-dev libpng-dev libjpeg-dev libedit-dev libgmp-dev openssl bc libbison-dev bison build-essential git-core vim curl pkg-config libgmp-dev autoconf apt-get install -y libicu-dev libmcrypt-dev libssl-dev libcurl4-openssl-dev libbz2-dev libxml2-dev libpng-dev libjpeg-dev libedit-dev libgmp-dev openssl bc libbison-dev bison build-essential git-core vim curl pkg-config libgmp-dev autoconf libopus-dev
if [ -f php-script-stuff/ ]; then if [ -d php-script-stuff/ ]; then
rm -rf php-script-stuff rm -rf php-script-stuff
fi fi
mkdir php-script-stuff mkdir php-script-stuff
cd php-script-stuff cd php-script-stuff
if [ -f php-src/ ]; then if [ -d php-src/ ]; then
rm -rf php-src/ rm -rf php-src/
fi fi
git clone https://github.com/php/php-src.git php-src git clone https://github.com/php/php-src.git php-src
cd php-src cd php-src
git checkout PHP-7.1.5 git checkout PHP-7.1.7
./buildconf --force ./buildconf --force
@ -28,7 +28,7 @@ make -j 16
make install make install
cp -a /etc/php7ts/* /usr/ cp -a /etc/php7ts/* /usr/
if [ -f ../pthreads/ ]; then if [ -d ../pthreads/ ]; then
rm -rf ../pthreads rm -rf ../pthreads
fi fi
git clone https://github.com/SirSnyder/pthreads -b feature/nested_volatiles ../pthreads git clone https://github.com/SirSnyder/pthreads -b feature/nested_volatiles ../pthreads
@ -38,7 +38,7 @@ phpize
make -j16 make -j16
make install make install
if [ -f ../PHP-CPP/ ]; then if [ -d ../PHP-CPP/ ]; then
rm -rf ../PHP-CPP rm -rf ../PHP-CPP
fi fi
@ -48,7 +48,7 @@ make -j16
make install make install
if [ -f ../PrimeModule-ext/ ]; then if [ -d ../PrimeModule-ext/ ]; then
rm -rf ../PrimeModule-ext rm -rf ../PrimeModule-ext
fi fi
@ -58,6 +58,11 @@ cd ../PrimeModule-ext
make -j16 make -j16
make install make install
git clone --recursive https://github.com/danog/php-libtgvoip ../php-libtgvoip
cd ../php-libtgvoip
make -j16
make install
cd ../.. cd ../..