1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 09:58:59 +01:00

Build libzip manually

This commit is contained in:
Daniil Gentili 2019-06-18 15:30:14 +02:00
parent e04abb9840
commit 7b38cfda27
2 changed files with 6 additions and 1 deletions

View File

@ -7,7 +7,7 @@ php:
addons:
apt:
packages:
- libzip-dev
- cmake
before_install:
- echo "phar.readonly = 0" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini

View File

@ -58,6 +58,11 @@ cd ..
[ $PHP_MAJOR_VERSION -eq 5 ] && {
git clone https://github.com/php-build/php-build $(phpenv root)/plugins/php-build
git clone -b rel-1-5-1 https://github.com/nih-at/libzip.git
cd libzip
cmake -DCMAKE_INSTALL_PREFIX=/home/derick/.phpenv/versions/7.3.6 .
make -j11
make install
phpenv install 7.3.6
~/.phpenv/versions/7.3.6/bin/php $php7to5 convert --copy-all phar7 phar5 >/dev/null