33# Gphoto2 2.5.8 compiler and installer script v0.4.1
44#
55# This script is specifically created for Raspbian http://www.raspbian.org
6- # and Raspberry Pi http://www.raspberrypi.org but should work over any
6+ # and Raspberry Pi http://www.raspberrypi.org but should work over any
77# Debian-based distribution
88
99# Created and mantained by Gonzalo Cao Cabeza de Vaca
1414# Updated for gphoto2 2.5.6 by Mathias Peter
1515# Updated for gphoto2 2.5.7 by Sijawusz Pur Rahnama
1616# Updated for gphoto2 2.5.8 by scribblemaniac
17+ # Updated for gphoto2 2.5.9 by scribblemaniac
1718
1819# This program is free software: you can redistribute it and/or modify
1920# it under the terms of the GNU General Public License as published by
@@ -72,23 +73,23 @@ echo "gphoto2-temp-folder created"
7273
7374echo
7475echo " -------------------------"
75- echo " Downloading libusb 1.0.18 "
76+ echo " Downloading libusb 1.0.20 "
7677echo " -------------------------"
7778echo
7879
79- if (wget -q http://downloads.sourceforge.net/project/libusbx/releases/ 1.0.18/source/libusbx -1.0.18.tar.bz2) && [ " ` sha256sum libusbx -1.0.18 .tar.bz2 | awk ' {print$1;} ' ` " = ' e16d1b10de69ddd0dcec31b8041b9b3ba4640d530e4851cc83268253b27d1ffb ' ]
80+ if (wget -q http://downloads.sourceforge.net/project/libusb/libusb- 1.0/libusb -1.0.20/libusb -1.0.20 .tar.bz2)
8081 then
81- tar xjvf libusbx -1.0.18 .tar.bz2
82- cd libusbx -1.0.18 /
82+ tar jxf libusb -1.0.20 .tar.bz2
83+ cd libusb -1.0.20 /
8384 else
84- echo " Unable to get libusbx_1.0.18 "
85- echo " Cleaning and exiting ..."
85+ echo " Unable to get libusb "
86+ echo " Exiting ..."
8687 exit 1
8788fi
8889
8990echo
9091echo " --------------------------------------"
91- echo " Compiling and installing libusb 1.0.18 "
92+ echo " Compiling and installing libusb 1.0.20 "
9293echo " --------------------------------------"
9394
9495./configure
@@ -99,24 +100,24 @@ cd ..
99100
100101echo
101102echo " ----------------------------"
102- echo " Downloading libgphoto2 2.5.8 "
103+ echo " Downloading libgphoto2 2.5.9 "
103104echo " ----------------------------"
104105echo
105106
106- if (wget -q http://downloads.sourceforge.net/project/gphoto/libgphoto/2.5.8 /libgphoto2-2.5.8 .tar.bz2) && [ " ` sha256sum libgphoto2-2.5.8 .tar.bz2 | awk ' {print$1;}' ` " = ' 031a262e342fae43f724afe66787947ce1fb483277dfe5a8cf1fbe92c58e27b6 ' ]
107+ if (wget http://downloads.sourceforge.net/project/gphoto/libgphoto/2.5.9 /libgphoto2-2.5.9 .tar.bz2) && [ " ` sha1sum libgphoto2-2.5.9 .tar.bz2 | awk ' {print$1;}' ` " = ' 6da9fe37d7fee12eefea4dc1d97139c7ef694ecf ' ]
107108 then
108- tar xjf libgphoto2-2.5.8 .tar.bz2
109- cd libgphoto2-2.5.8
109+ tar xjf libgphoto2-2.5.9 .tar.bz2
110+ cd libgphoto2-2.5.9
110111 else
111- echo " Unable to get libgphoto2-2.5.8 "
112+ echo " Unable to get libgphoto2-2.5.9 "
112113 echo " Cleaning and exiting..."
113114 exit 1
114115fi
115116
116117
117118echo
118119echo " -----------------------------------------"
119- echo " Compiling and installing libgphoto2 2.5.8 "
120+ echo " Compiling and installing libgphoto2 2.5.9 "
120121echo " -----------------------------------------"
121122echo
122123
@@ -127,16 +128,16 @@ cd ..
127128
128129echo
129130echo " -------------------------"
130- echo " Downloading gphoto2 2.5.8 "
131+ echo " Downloading gphoto2 2.5.9 "
131132echo " -------------------------"
132133echo
133134
134- if (wget -q http://downloads.sourceforge.net/project/gphoto/gphoto/2.5.8 /gphoto2-2.5.8 .tar.gz ) && [ " ` sha256sum gphoto2-2.5.8 .tar.gz | awk ' {print$1;}' ` " = ' 1950542253d42fa9898028879b04fdbf09393c095f2c0273b062e897d10790ad ' ]
135+ if (wget http://downloads.sourceforge.net/project/gphoto/gphoto/2.5.9 /gphoto2-2.5.9 .tar.bz2 ) && [ " ` sha1sum gphoto2-2.5.9 .tar.bz2 | awk ' {print$1;}' ` " = ' b28b5c297652651c4ce1b544a4930c0470e9b419 ' ]
135136 then
136- tar xzvf gphoto2-2.5.8 .tar.gz
137- cd gphoto2-2.5.8
137+ tar xjf gphoto2-2.5.9 .tar.bz2
138+ cd gphoto2-2.5.9
138139 else
139- echo " Unable to get gphoto2-2.5.8 "
140+ echo " Unable to get gphoto2-2.5.9 "
140141 echo " Cleaning and exiting..."
141142 exit 1
142143fi
@@ -213,4 +214,3 @@ echo "--------------------"
213214echo
214215
215216gphoto2 --version
216-
0 commit comments