| 10 |
10 |
| 11 STAGE_DIR=`readlink -f $PIDGIN_BASE/pidgin/win32/nsis/gtk_runtime_stage` |
11 STAGE_DIR=`readlink -f $PIDGIN_BASE/pidgin/win32/nsis/gtk_runtime_stage` |
| 12 #Subdirectory of $STAGE_DIR |
12 #Subdirectory of $STAGE_DIR |
| 13 INSTALL_DIR=Gtk |
13 INSTALL_DIR=Gtk |
| 14 CONTENTS_FILE=$INSTALL_DIR/CONTENTS |
14 CONTENTS_FILE=$INSTALL_DIR/CONTENTS |
| |
15 PIDGIN_VERSION=$( < $PIDGIN_BASE/VERSION ) |
| 15 |
16 |
| 16 #This needs to be changed every time there is any sort of change. |
17 #This needs to be changed every time there is any sort of change. |
| 17 BUNDLE_VERSION=2.16.6.1 |
18 BUNDLE_VERSION=2.16.6.1 |
| |
19 BUNDLE_SHA1SUM=5e16b7efb11943e8c80bc390f6c38df904fd36ed |
| |
20 ZIP_FILE="$PIDGIN_BASE/pidgin/win32/nsis/gtk-runtime-$BUNDLE_VERSION.zip" |
| |
21 |
| |
22 #Download the existing file (so that we distribute the exact same file for all releases with the same bundle version) |
| |
23 FILE="$ZIP_FILE" |
| |
24 if [ ! -e "$FILE" ]; then |
| |
25 wget "https://pidgin.im/win32/download_redir.php?version=$PIDGIN_VERSION>k_version=$BUNDLE_VERSION&dl_pkg=gtk" -O "$FILE" |
| |
26 fi |
| |
27 CHECK_SHA1SUM=`sha1sum $FILE` |
| |
28 CHECK_SHA1SUM=${CHECK_SHA1SUM%%\ *} |
| |
29 if [ "$CHECK_SHA1SUM" != "$BUNDLE_SHA1SUM" ]; then |
| |
30 echo "sha1sum ($CHECK_SHA1SUM) for $FILE doesn't match expected value of $BUNDLE_SHA1SUM" |
| |
31 # Allow "devel" versions to build their own bundles if the download doesn't succeed |
| |
32 if [[ "$PIDGIN_VERSION" == *"devel" ]]; then |
| |
33 echo "Continuing GTK+ Bundle creation for development version of Pidgin" |
| |
34 else |
| |
35 exit 1 |
| |
36 fi |
| |
37 else |
| |
38 exit 0 |
| |
39 fi |
| |
40 |
| 18 |
41 |
| 19 ATK="http://ftp.gnome.org/pub/gnome/binaries/win32/atk/1.32/atk_1.32.0-2_win32.zip ATK 1.32.0-2 sha1sum:3c31c9d6b19af840e2bd8ccbfef4072a6548dc4e" |
42 ATK="http://ftp.gnome.org/pub/gnome/binaries/win32/atk/1.32/atk_1.32.0-2_win32.zip ATK 1.32.0-2 sha1sum:3c31c9d6b19af840e2bd8ccbfef4072a6548dc4e" |
| 20 #Cairo 1.10.2 has a bug that can be seen when selecting text |
43 #Cairo 1.10.2 has a bug that can be seen when selecting text |
| 21 #CAIRO="http://ftp.gnome.org/pub/GNOME/binaries/win32/dependencies/cairo_1.10.2-2_win32.zip Cairo 1.10.2-2 sha1sum:d44cd66a9f4d7d29a8f2c28d1c1c5f9b0525ba44" |
44 #CAIRO="http://ftp.gnome.org/pub/GNOME/binaries/win32/dependencies/cairo_1.10.2-2_win32.zip Cairo 1.10.2-2 sha1sum:d44cd66a9f4d7d29a8f2c28d1c1c5f9b0525ba44" |
| 22 CAIRO="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/cairo_1.8.10-1_win32.zip Cairo 1.8.10-1 sha1sum:a08476cccd807943958610977a138c4d6097c7b8" |
45 CAIRO="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/cairo_1.8.10-1_win32.zip Cairo 1.8.10-1 sha1sum:a08476cccd807943958610977a138c4d6097c7b8" |