Skip to content

Commit 3587dcd

Browse files
committed
Updated to ligphoto & gphoto 2.5.9 version and new libus 1.20 library
1 parent 0bf7588 commit 3587dcd

File tree

2 files changed

+22
-24
lines changed

2 files changed

+22
-24
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ gphoto2-updater
44
Gphoto2 and libGphoto2 compiler and installer script
55
http://github.com/gonzalo/gphoto2-updater
66

7-
Last version: 2.5.8
7+
Last version: 2.5.9
88

99
This script is specifically created for Raspbian http://www.raspbian.org
10-
and Raspberry Pi http://www.raspberrypi.org but should work over any
10+
and Raspberry Pi http://www.raspberrypi.org but should work over any
1111
Debian-based distribution
1212

1313
Created and mantained by Gonzalo Cao Cabeza de Vaca
@@ -45,5 +45,3 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
4545
GNU General Public License for more details.
4646
You should have received a copy of the GNU General Public License
4747
along with this program. If not, see <http://www.gnu.org/licenses/>.
48-
49-

gphoto2-updater.sh

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
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
@@ -14,6 +14,7 @@
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

7374
echo
7475
echo "-------------------------"
75-
echo "Downloading libusb 1.0.18"
76+
echo "Downloading libusb 1.0.20"
7677
echo "-------------------------"
7778
echo
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
8788
fi
8889

8990
echo
9091
echo "--------------------------------------"
91-
echo "Compiling and installing libusb 1.0.18"
92+
echo "Compiling and installing libusb 1.0.20"
9293
echo "--------------------------------------"
9394

9495
./configure
@@ -99,24 +100,24 @@ cd ..
99100

100101
echo
101102
echo "----------------------------"
102-
echo "Downloading libgphoto2 2.5.8"
103+
echo "Downloading libgphoto2 2.5.9"
103104
echo "----------------------------"
104105
echo
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
114115
fi
115116

116117

117118
echo
118119
echo "-----------------------------------------"
119-
echo "Compiling and installing libgphoto2 2.5.8"
120+
echo "Compiling and installing libgphoto2 2.5.9"
120121
echo "-----------------------------------------"
121122
echo
122123

@@ -127,16 +128,16 @@ cd ..
127128

128129
echo
129130
echo "-------------------------"
130-
echo "Downloading gphoto2 2.5.8"
131+
echo "Downloading gphoto2 2.5.9"
131132
echo "-------------------------"
132133
echo
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
142143
fi
@@ -213,4 +214,3 @@ echo "--------------------"
213214
echo
214215

215216
gphoto2 --version
216-

0 commit comments

Comments
 (0)