Guest User

Untitled

a guest
Feb 17th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. #!/usr/bin/env bash
  2.  
  3. # Clear out all previous attempts
  4. rm -rf "/tmp/source-git/"
  5.  
  6. # Get the dependencies for git, then get openssl
  7. sudo apt-get install build-essential fakeroot dpkg-dev -y
  8. sudo apt-get build-dep git -y
  9. sudo apt-get install libcurl4-openssl-dev -y
  10. mkdir -p "/tmp/source-git/"
  11. cd "/tmp/source-git/"
  12. apt-get source git
  13.  
  14. # We need to actually go into the git source directory
  15. # find -type f -name "*.dsc" -exec dpkg-source -x \{\} \;
  16. cd $(find -mindepth 1 -maxdepth 1 -type d -name "git-*")
  17. pwd
  18.  
  19. # This is where we actually change the library from one type to the other.
  20. sed -i -- 's/libcurl4-gnutls-dev/libcurl4-openssl-dev/' ./debian/control
  21. # Compile time, itself, is long. Skips the tests. Do so at your own peril.
  22. sed -i -- '/TEST\s*=\s*test/d' ./debian/rules
  23.  
  24. # Build it.
  25. dpkg-buildpackage -rfakeroot -b
  26.  
  27. # Install
  28. find .. -type f -name "git_*ubuntu*.deb" -exec sudo dpkg -i \{\} \;
Add Comment
Please, Sign In to add comment