From 7b38cfda271b8fac3a898bc96b3d1149b6d043bd Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Tue, 18 Jun 2019 15:30:14 +0200 Subject: [PATCH] Build libzip manually --- .travis.yml | 2 +- tests/makephar.sh | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 1d22c8c2..0c36c26e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/tests/makephar.sh b/tests/makephar.sh index 888a1b39..328d118f 100755 --- a/tests/makephar.sh +++ b/tests/makephar.sh @@ -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