Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # The RetroPie Project is the legal property of its developers, whose names are
- # too numerous to list here. Please refer to the COPYRIGHT.md file distributed with this source.
- #
- # See the LICENSE.md file at the top-level directory of this distribution and
- # at https://raw.githubusercontent.com/RetroPie/RetroPie-Setup/master/LICENSE.md
- #
- rp_module_id="screenshot"
- rp_module_desc="Universal Screenshot with Raspi2PNG"
- rp_module_menus="4+"
- function depends_screenshot() {
- getDepends libpng12-dev
- }
- function sources_screenshot() {
- gitPullOrClone "$md_build" https://github.com/AndrewFromMelbourne/raspi2png.git
- }
- function build_screenshot() {
- cd raspi2png
- ./configure --prefix="$md_inst"
- make clean
- make
- }
- function install_screenshot() {
- make install
- }
- function configure_screenshot() {
- mkUserDir "$datadir/screenshots"
- # Create limelight config script
- cat > "$datadir/screenshots/screenshot.sh" << _EOF_
- #!/bin/bash
- raspi2png -p $datadir/screenshots/$(date +%m%d%Y_%H%M%S).png
- _EOF_
- chown $user:$user "$datadir/screenshots/screenshot.sh"
- chmod +x "$datadir/screenshots/screenshot.sh"
- echo -e "\nTo take a screenshot use $datadir/screenshots/screenshot.sh over SSH\n"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement