Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/bash
- apt-get -y install ubuntu-dev-tools
- if [ -d /tmp/build-precise-php5-on-lucid ] ; then
- rm -rf /tmp/build-precise-php5-on-lucid
- fi
- mkdir /tmp/build-precise-php5-on-lucid
- cd /tmp/build-precise-php5-on-lucid
- pull-lp-source php5 precise
- # not sure if this line is necessary
- dpkg-source -x php5_5.3.10-*.dsc
- # lucid build-dep won't pull in some packages we need, so install by hand
- apt-get build-dep php5
- apt-get install libmagic-dev lemon mysql-server-core-5.1 mysql-client-5.1
- cd php5-5.3.10
- # depend on mysql-5.1 packages instead of 5.5.
- sed -i 's/mysql-server-core-5.5/mysql-server-core-5.1/' debian/control
- sed -i 's/mysql-client-5.5/mysql-client-5.1/' debian/control
- # depend locales or english, NFI why locales-all is in there
- sed -i 's/locales-all | language-pack-de/locales | language-pack-en/' debian/control
- debuild binary
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement