#!/bin/bash
lib=$1 #the libs name
getit=$(wget http://pecl.php.net/get/$1) #now download the lib
move=$(mv $1 $1.tgz) #move the file since it doesnt have an extension
extract=$(unfoo $1.tgz);
remove=$(rm $1.tgz package.xml) #remove the file nad its package.xml
filename=$(ls | awk -F / '{ print $1 }' )
cd $filename #move to the folder
#now actually do the stuff in order to make it
phpize
aclocal
libtoolize --force
autoheader
autoconf
configit=$(sh configure)
make
make install
cd ../
remove=$(rm -rf $filename)
Updated By Keloran


