pidgin/win32/nsis/generate_gtk_zip.sh

changeset 35138
77d7303db326
parent 34270
3ee9b2690519
child 35139
c30787ce6256
equal deleted inserted replaced
35137:d816abf49b5e 35138:77d7303db326
6 GPG_SIGN=$1 6 GPG_SIGN=$1
7 7
8 if [ ! -e $PIDGIN_BASE/ChangeLog ]; then 8 if [ ! -e $PIDGIN_BASE/ChangeLog ]; then
9 echo "Pidgin base directory not found" 9 echo "Pidgin base directory not found"
10 exit 1 10 exit 1
11 fi
12
13 if [ ! -e $PIDGIN_BASE/VERSION ]; then
14 cd ../../..
15 make -f Makefile.mingw VERSION
16 cd - > /dev/null
11 fi 17 fi
12 18
13 STAGE_DIR=`readlink -f $PIDGIN_BASE/pidgin/win32/nsis/gtk_runtime_stage` 19 STAGE_DIR=`readlink -f $PIDGIN_BASE/pidgin/win32/nsis/gtk_runtime_stage`
14 #Subdirectory of $STAGE_DIR 20 #Subdirectory of $STAGE_DIR
15 INSTALL_DIR=Gtk 21 INSTALL_DIR=Gtk
19 #This needs to be changed every time there is any sort of change. 25 #This needs to be changed every time there is any sort of change.
20 BUNDLE_VERSION=2.24.14.0 26 BUNDLE_VERSION=2.24.14.0
21 BUNDLE_SHA1SUM="df28047f00934e6a00a5962387a1005114ec772e" 27 BUNDLE_SHA1SUM="df28047f00934e6a00a5962387a1005114ec772e"
22 ZIP_FILE="$PIDGIN_BASE/pidgin/win32/nsis/gtk-runtime-$BUNDLE_VERSION.zip" 28 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&gtk_version=$BUNDLE_VERSION&dl_pkg=gtk" 29 #BUNDLE_URL="https://pidgin.im/win32/download_redir.php?version=$PIDGIN_VERSION&gtk_version=$BUNDLE_VERSION&dl_pkg=gtk"
24 BUNDLE_URL="https://dl.dropbox.com/u/5448886/pidgin-win32/gtk-runtime-2.24.14.0.zip" 30 BUNDLE_URL="https://pidgin.im/~twasilczyk/win32/gtk-runtime-$BUNDLE_VERSION.zip"
25 31
26 function download() { 32 function download() {
27 if [ -e "$2" ]; then 33 if [ -e "$2" ]; then
28 echo "File exists" 34 echo "File exists"
29 exit 1 35 exit 1
73 else 79 else
74 echo "GTK+ Bundle is up to date" 80 echo "GTK+ Bundle is up to date"
75 exit 0 81 exit 0
76 fi 82 fi
77 83
78 #DOWNLOAD_HOST="http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_12.3/noarch/" 84 # origin: http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_12.3/noarch/
79 #TODO: this is just a temporary mirror - Tomek Wasilczyk's <tomkiewicz@cpw.pidgin.im> Dropbox 85 DOWNLOAD_HOST="https://pidgin.im/~twasilczyk/win32/runtime-deps/"
80 DOWNLOAD_HOST="https://dl.dropbox.com/u/5448886/pidgin-win32/runtime-deps/"
81 86
82 ALL="" 87 ALL=""
83 88
84 ARC_ATK="${DOWNLOAD_HOST}mingw32-atk-2.8.0-1.5.noarch.rpm ATK 2.8.0-1.5 sha1sum:0c682eadc299963aaa5d7998d655e46ead7d7515" 89 ARC_ATK="${DOWNLOAD_HOST}mingw32-atk-2.8.0-1.5.noarch.rpm ATK 2.8.0-1.5 sha1sum:0c682eadc299963aaa5d7998d655e46ead7d7515"
85 ALL+="ARC_ATK " 90 ALL+="ARC_ATK "
250 mkdir $INSTALL_DIR 255 mkdir $INSTALL_DIR
251 256
252 #new CONTENTS file 257 #new CONTENTS file
253 echo Bundle Version $BUNDLE_VERSION > $CONTENTS_FILE 258 echo Bundle Version $BUNDLE_VERSION > $CONTENTS_FILE
254 259
255 #TODO: temporary mirror also 260 CPIO_URL="https://pidgin.im/~twasilczyk/win32/devel-deps/cpio/bsdcpio-3.0.3-1.4.tar.gz"
256 CPIO_URL="https://dl.dropbox.com/u/5448886/pidgin-win32/cpio/bsdcpio-3.0.3-1.4.tar.gz"
257 CPIO_SHA1SUM="0460c7a52f8c93d3c4822d6d1aaf9410f21bd4da" 261 CPIO_SHA1SUM="0460c7a52f8c93d3c4822d6d1aaf9410f21bd4da"
258 CPIO_DIR="bsdcpio" 262 CPIO_DIR="bsdcpio"
259 FILE="bsdcpio.tar.gz" 263 FILE="bsdcpio.tar.gz"
260 if [ ! -e "$FILE" ]; then 264 if [ ! -e "$FILE" ]; then
261 echo "Downloading bsdcpio" 265 echo "Downloading bsdcpio"

mercurial