12345678910111213141516171819202122 |
- #!/bin/bash
- fw_depends php7
- RETCODE=$(fw_exists ${IROOT}/phalcon.installed)
- [ ! "$RETCODE" == 0 ] || { \
- source $IROOT/phalcon.installed
- return 0; }
- # Enable the PHP phalcon extension
- sed -i 's|;extension=phalcon.so|extension=phalcon.so|g' $PHP_HOME/lib/php.ini
- VERSION="3.0.2"
- fw_get -O https://github.com/phalcon/cphalcon/archive/v${VERSION}.tar.gz
- fw_untar v${VERSION}.tar.gz
- cd cphalcon-${VERSION}/build
- ./install
- echo "" > $IROOT/phalcon.installed
- source $IROOT/phalcon.installed
|