Advertisement
Guest User

Untitled

a guest
Apr 4th, 2012
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.85 KB | None | 0 0
  1. #! /bin/bash
  2.  
  3. apt-get -y install ubuntu-dev-tools
  4.  
  5. if [ -d /tmp/build-precise-php5-on-lucid ] ; then
  6.  rm -rf /tmp/build-precise-php5-on-lucid
  7. fi
  8. mkdir /tmp/build-precise-php5-on-lucid
  9. cd /tmp/build-precise-php5-on-lucid
  10.  
  11. pull-lp-source php5 precise
  12. # not sure if this line is necessary
  13. dpkg-source -x php5_5.3.10-*.dsc
  14.  
  15. # lucid build-dep won't pull in some packages we need, so install by hand
  16. apt-get build-dep php5
  17. apt-get install libmagic-dev lemon mysql-server-core-5.1 mysql-client-5.1
  18.  
  19. cd php5-5.3.10
  20. # depend on mysql-5.1 packages instead of 5.5.
  21. sed -i 's/mysql-server-core-5.5/mysql-server-core-5.1/' debian/control
  22. sed -i 's/mysql-client-5.5/mysql-client-5.1/' debian/control
  23. # depend locales or english, NFI why locales-all is in there
  24. sed -i 's/locales-all | language-pack-de/locales | language-pack-en/' debian/control
  25.  
  26. debuild binary
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement