Browse Source

Makefile: Build the package for minimum supported PHP version

Don't require jq

[skip ci]
pull/8117/merge
Aleksander Machniak 2 years ago
parent
commit
510632250d
  1. 11
      Makefile

11
Makefile

@ -8,6 +8,7 @@ GPGKEY=devs@roundcube.net
VERSION=1.7-git
SEDI=sed -i
WHICH=which
PHP_VERSION=7.3
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Darwin)
@ -19,8 +20,13 @@ all: clean complete dependent framework
complete: roundcubemail-git
cp -RH roundcubemail-git roundcubemail-$(VERSION)
(cd roundcubemail-$(VERSION); jq '.require += {"kolab/net_ldap3": "~1.1.1"} | del(.suggest."kolab/net_ldap3")' --indent 4 composer.json-dist > composer.json)
(cd roundcubemail-$(VERSION); php /tmp/composer.phar install --prefer-dist --no-dev --ignore-platform-reqs --no-interaction)
(cd roundcubemail-$(VERSION); cp composer.json-dist composer.json)
(cd roundcubemail-$(VERSION); php /tmp/composer.phar config platform.php $(PHP_VERSION))
(cd roundcubemail-$(VERSION); php /tmp/composer.phar require "kolab/net_ldap3:~1.1.1" --no-update --no-install)
(cd roundcubemail-$(VERSION); php /tmp/composer.phar config --unset suggest.kolab/net_ldap3)
(cd roundcubemail-$(VERSION); php /tmp/composer.phar config --unset require-dev)
(cd roundcubemail-$(VERSION); php /tmp/composer.phar install --prefer-dist --no-dev --no-interaction)
(cd roundcubemail-$(VERSION); php /tmp/composer.phar config --unset platform)
(cd roundcubemail-$(VERSION); bin/install-jsdeps.sh --force)
(cd roundcubemail-$(VERSION); bin/jsshrink.sh program/js/publickey.js; bin/jsshrink.sh plugins/managesieve/codemirror/lib/codemirror.js)
(cd roundcubemail-$(VERSION); rm -f jsdeps.json bin/install-jsdeps.sh *.orig; rm -rf temp/js_cache)
@ -73,7 +79,6 @@ buildtools: /tmp/composer.phar
npm install lessc
npm install less-plugin-clean-css
npm install csso-cli
@$(WHICH) jq || echo "!!!!!! Please install jq (https://stedolan.github.io/jq/) !!!!!!"
/tmp/composer.phar:
curl -sS https://getcomposer.org/installer | php -- --install-dir=/tmp/

Loading…
Cancel
Save