#!/bin/bash

pear config-create `pwd` ./.pearrc
pear -c ./.pearrc config-set php_dir `pwd`/PEAR/
pear -c ./.pearrc channel-update pear.php.net
pear -c ./.pearrc install --alldeps -o PEAR
pear -c ./.pearrc install --alldeps -o MDB2
pear -c ./.pearrc install --alldeps -o MDB2_Driver_mysqli
pear -c ./.pearrc install --alldeps -o MDB2_Driver_mysql
pear -c ./.pearrc install --alldeps -o Pager

wget "http://www.smarty.net/do_download.php?download_file=Smarty-2.6.26.tar.gz"
tar xvzf ./Smarty-2.6.26.tar.gz
rm -fr ./Smarty-2.6.26.tar.gz
mv ./Smarty-2.6.26 ./Smarty
