Advertisement
Guest User

Untitled

a guest
Feb 6th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. #
  2. # The RetroPie Project is the legal property of its developers, whose names are
  3. # too numerous to list here. Please refer to the COPYRIGHT.md file distributed with this source.
  4. #
  5. # See the LICENSE.md file at the top-level directory of this distribution and
  6. # at https://raw.githubusercontent.com/RetroPie/RetroPie-Setup/master/LICENSE.md
  7. #
  8.  
  9. rp_module_id="screenshot"
  10. rp_module_desc="Universal Screenshot with Raspi2PNG"
  11. rp_module_menus="4+"
  12.  
  13. function depends_screenshot() {
  14. getDepends libpng12-dev
  15. }
  16.  
  17. function sources_screenshot() {
  18. gitPullOrClone "$md_build" https://github.com/AndrewFromMelbourne/raspi2png.git
  19. }
  20.  
  21. function build_screenshot() {
  22. cd raspi2png
  23. ./configure --prefix="$md_inst"
  24. make clean
  25. make
  26. }
  27.  
  28. function install_screenshot() {
  29. make install
  30. }
  31.  
  32. function configure_screenshot() {
  33. mkUserDir "$datadir/screenshots"
  34.  
  35. # Create limelight config script
  36. cat > "$datadir/screenshots/screenshot.sh" << _EOF_
  37. #!/bin/bash
  38. raspi2png -p $datadir/screenshots/$(date +%m%d%Y_%H%M%S).png
  39. _EOF_
  40.  
  41. chown $user:$user "$datadir/screenshots/screenshot.sh"
  42. chmod +x "$datadir/screenshots/screenshot.sh"
  43.  
  44. echo -e "\nTo take a screenshot use $datadir/screenshots/screenshot.sh over SSH\n"
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement