| 16 CONTENTS_FILE=$INSTALL_DIR/CONTENTS |
16 CONTENTS_FILE=$INSTALL_DIR/CONTENTS |
| 17 PIDGIN_VERSION=$( < $PIDGIN_BASE/VERSION ) |
17 PIDGIN_VERSION=$( < $PIDGIN_BASE/VERSION ) |
| 18 |
18 |
| 19 #This needs to be changed every time there is any sort of change. |
19 #This needs to be changed every time there is any sort of change. |
| 20 BUNDLE_VERSION=2.24.14.0 |
20 BUNDLE_VERSION=2.24.14.0 |
| 21 BUNDLE_SHA1SUM="402c265590f304537e31a1f3b04aad32c6eea620" |
21 BUNDLE_SHA1SUM="f2f1f74295ab237bedddbe38586bb7e5191178f1" |
| 22 ZIP_FILE="$PIDGIN_BASE/pidgin/win32/nsis/gtk-runtime-$BUNDLE_VERSION.zip" |
22 ZIP_FILE="$PIDGIN_BASE/pidgin/win32/nsis/gtk-runtime-$BUNDLE_VERSION.zip" |
| |
23 #BUNDLE_URL="https://pidgin.im/win32/download_redir.php?version=$PIDGIN_VERSION>k_version=$BUNDLE_VERSION&dl_pkg=gtk" |
| |
24 BUNDLE_URL="https://dl.dropbox.com/u/5448886/pidgin-win32/gtk-runtime-2.24.14.0.zip" |
| 23 |
25 |
| 24 function download() { |
26 function download() { |
| 25 if [ -e "$2" ]; then |
27 if [ -e "$2" ]; then |
| 26 echo "File exists" |
28 echo "File exists" |
| 27 exit 1 |
29 exit 1 |
| 47 |
49 |
| 48 #Download the existing file (so that we distribute the exact same file for all releases with the same bundle version) |
50 #Download the existing file (so that we distribute the exact same file for all releases with the same bundle version) |
| 49 FILE="$ZIP_FILE" |
51 FILE="$ZIP_FILE" |
| 50 if [ ! -e "$FILE" ]; then |
52 if [ ! -e "$FILE" ]; then |
| 51 echo "Downloading the existing file" |
53 echo "Downloading the existing file" |
| 52 download "https://pidgin.im/win32/download_redir.php?version=$PIDGIN_VERSION>k_version=$BUNDLE_VERSION&dl_pkg=gtk" "$FILE" "quiet" |
54 download "$BUNDLE_URL" "$FILE" "quiet" |
| 53 fi |
55 fi |
| 54 if [ -e "$FILE" ]; then |
56 if [ -e "$FILE" ]; then |
| 55 CHECK_SHA1SUM=`sha1sum $FILE` |
57 CHECK_SHA1SUM=`sha1sum $FILE` |
| 56 CHECK_SHA1SUM=${CHECK_SHA1SUM%%\ *} |
58 CHECK_SHA1SUM=${CHECK_SHA1SUM%%\ *} |
| 57 else |
59 else |
| 131 |
133 |
| 132 #new CONTENTS file |
134 #new CONTENTS file |
| 133 echo Bundle Version $BUNDLE_VERSION > $CONTENTS_FILE |
135 echo Bundle Version $BUNDLE_VERSION > $CONTENTS_FILE |
| 134 |
136 |
| 135 #TODO: temporary mirror also |
137 #TODO: temporary mirror also |
| 136 CPIO_URL="https://dl.dropbox.com/u/5448886/pidgin-win32/cpio/bsdcpio-3.0.3-1.4.zip" |
138 CPIO_URL="https://dl.dropbox.com/u/5448886/pidgin-win32/cpio/bsdcpio-3.0.3-1.4.tar.gz" |
| 137 CPIO_SHA1SUM="0cb99adb2c2d759c9a21228223e55c8bf227f736" |
139 CPIO_SHA1SUM="0460c7a52f8c93d3c4822d6d1aaf9410f21bd4da" |
| 138 CPIO_DIR="bsdcpio" |
140 CPIO_DIR="bsdcpio" |
| 139 FILE="bsdcpio.zip" |
141 FILE="bsdcpio.tar.gz" |
| 140 if [ ! -e "$FILE" ]; then |
142 if [ ! -e "$FILE" ]; then |
| 141 echo "Downloading bsdcpio" |
143 echo "Downloading bsdcpio" |
| 142 download "$CPIO_URL" "$FILE" || exit 1 |
144 download "$CPIO_URL" "$FILE" || exit 1 |
| 143 fi |
145 fi |
| 144 CHECK_SHA1SUM=`sha1sum $FILE` |
146 CHECK_SHA1SUM=`sha1sum $FILE` |