Skip to content
Thomas B edited this page Apr 20, 2016 · 5 revisions

Build Roundcube from Source

Building Roundcube from source is pretty similar to Creating a new release.
Let's list the individual steps with a short description:

1. Fetch the source from github

git clone git://github.com/roundcube/roundcubemail.git roundcubemail-git

2. Switch to the according branch

cd roundcubemail-git
git checkout tags/1.1.5

(check out whatever tag or branch you desire)

3. Compress Javascript files and add cache-buster tokens to images referenced from CSS styles

bin/jsshrink.sh
bin/updatecss.sh

4. Optionally compress CSS files as well

bin/cssshrink.sh

5. Remove development stuff, installer and git files

rm transifexpull.sh package2composer.sh importgettext.sh exportgettext.sh README.md INSTALL UPGRADING, LICENSE, CHANGELOG
rm -rf tests/ public_html/ installer/ .git* .tx*

6. Download and configure Composer

curl -sS https://getcomposer.org/installer | php -- --install-dir=/tmp/
cp composer.json-dist composer.json

7. Optionally, add dependencies for LDAP modules in order to enable LDAP address books in Roundcube

php /tmp/composer.phar require pear-pear.php.net/net_ldap2:~2.1.0 kolab/net_ldap3:dev-master --no-update

8. Install dependencies using Composer

php /tmp/composer.phar install --prefer-dist --no-dev

The roundcubemail-git directory now contains a complete Roundcube installation ready for deployment or packaging.

Clone this wiki locally