phalcon.sh 496 B

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