| 14 CONTENTS_FILE=$INSTALL_DIR/CONTENTS |
14 CONTENTS_FILE=$INSTALL_DIR/CONTENTS |
| 15 |
15 |
| 16 #This needs to be changed every time there is any sort of change. |
16 #This needs to be changed every time there is any sort of change. |
| 17 BUNDLE_VERSION=2.16.6.0 |
17 BUNDLE_VERSION=2.16.6.0 |
| 18 |
18 |
| 19 ATK="http://ftp.acc.umu.se/pub/gnome/binaries/win32/atk/1.26/atk_1.26.0-1_win32.zip ATK 1.26.0-1" |
19 ATK="http://ftp.acc.umu.se/pub/gnome/binaries/win32/atk/1.26/atk_1.26.0-1_win32.zip ATK 1.26.0-1 97efc4c2640e7bae38f672c5e1ff66542a202756" |
| 20 CAIRO="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/cairo_1.8.10-1_win32.zip Cairo 1.8.10-1" |
20 CAIRO="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/cairo_1.8.10-1_win32.zip Cairo 1.8.10-1 a08476cccd807943958610977a138c4d6097c7b8" |
| 21 EXPAT="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/expat_2.0.1-1_win32.zip Expat 2.0.1-1" |
21 EXPAT="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/expat_2.0.1-1_win32.zip Expat 2.0.1-1 f47790b9e324cd8613acc9a17fd56bf2c14745fc" |
| 22 FONTCONFIG="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/fontconfig_2.8.0-2_win32.zip Fontconfig 2.8.0-2" |
22 FONTCONFIG="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/fontconfig_2.8.0-2_win32.zip Fontconfig 2.8.0-2 37a3117ea6cc50c8a88fba9b6018f35a04fa71ce" |
| 23 FREETYPE="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/freetype_2.3.11-2_win32.zip Freetype 2.3.11-2" |
23 FREETYPE="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/freetype_2.3.11-2_win32.zip Freetype 2.3.11-2 4d40ac1a44d818ac6720c2e93503346b91e99561" |
| 24 GETTEXT="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/gettext-runtime-0.17-1.zip Gettext 0.17-1" |
24 GETTEXT="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/gettext-runtime-0.17-1.zip Gettext 0.17-1 ad486eed8a531fba1d3cc7ad2f04e8e03367a962" |
| 25 GLIB="http://ftp.gnome.org/pub/gnome/binaries/win32/glib/2.20/glib_2.20.5-1_win32.zip Glib 2.20.5-1" |
25 GLIB="http://ftp.gnome.org/pub/gnome/binaries/win32/glib/2.20/glib_2.20.5-1_win32.zip Glib 2.20.5-1 b670b37559ef4d088153f77960c6e24a2747efe7" |
| 26 GTK="http://ftp.acc.umu.se/pub/gnome/binaries/win32/gtk+/2.16/gtk+_2.16.6-2_win32.zip GTK+ 2.16.6-2" |
26 GTK="http://ftp.acc.umu.se/pub/gnome/binaries/win32/gtk+/2.16/gtk+_2.16.6-2_win32.zip GTK+ 2.16.6-2 012853e6de814ebda0cc4459f9eed8ae680e6d17" |
| 27 LIBPNG="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/libpng_1.4.0-1_win32.zip libpng 1.4.0-1" |
27 LIBPNG="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/libpng_1.4.0-1_win32.zip libpng 1.4.0-1 9f08167d43a19e4e2efac458f776f64d61544cb5" |
| 28 PANGO="http://ftp.gnome.org/pub/gnome/binaries/win32/pango/1.26/pango_1.26.2-1_win32.zip Pango 1.26.2-1" |
28 PANGO="http://ftp.gnome.org/pub/gnome/binaries/win32/pango/1.26/pango_1.26.2-1_win32.zip Pango 1.26.2-1 f0e70127f7bb7a784a66d406cabf244da8316d31" |
| 29 ZLIB="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/zlib-1.2.3.zip zlib 1.2.3" |
29 ZLIB="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/zlib-1.2.3.zip zlib 1.2.3 0ee1e581e99fb761a5b2d46c534c861ca0f58175" |
| 30 |
30 |
| 31 ALL="ATK CAIRO EXPAT FONTCONFIG FREETYPE GETTEXT GLIB GTK LIBPNG PANGO ZLIB" |
31 ALL="ATK CAIRO EXPAT FONTCONFIG FREETYPE GETTEXT GLIB GTK LIBPNG PANGO ZLIB" |
| 32 |
32 |
| 33 mkdir -p $STAGE_DIR |
33 mkdir -p $STAGE_DIR |
| 34 cd $STAGE_DIR |
34 cd $STAGE_DIR |
| 39 #new CONTENTS file |
39 #new CONTENTS file |
| 40 echo Bundle Version $BUNDLE_VERSION > $CONTENTS_FILE |
40 echo Bundle Version $BUNDLE_VERSION > $CONTENTS_FILE |
| 41 |
41 |
| 42 function download_and_extract { |
42 function download_and_extract { |
| 43 URL=${1%%\ *} |
43 URL=${1%%\ *} |
| 44 NAME=${1#*\ } |
44 SHA1SUM=${1##*\ } |
| |
45 NAME=${1%\ *} |
| |
46 NAME=${NAME#*\ } |
| 45 FILE=$(basename $URL) |
47 FILE=$(basename $URL) |
| 46 if [ ! -e $FILE ]; then |
48 if [ ! -e $FILE ]; then |
| 47 echo Downloading $NAME |
49 echo Downloading $NAME |
| 48 wget $URL || return 1 |
50 wget $URL || exit 1 |
| |
51 fi |
| |
52 CHECK_SHA1SUM=`sha1sum $FILE` |
| |
53 CHECK_SHA1SUM=${CHECK_SHA1SUM%%\ *} |
| |
54 if [ "$CHECK_SHA1SUM" != "$SHA1SUM" ]; then |
| |
55 echo "sha1sum ($CHECK_SHA1SUM) for $FILE doesn't match expected value of $SHA1SUM" |
| |
56 exit 1 |
| 49 fi |
57 fi |
| 50 EXTENSION=${FILE##*.} |
58 EXTENSION=${FILE##*.} |
| 51 #This is an OpenSuSE build service RPM |
59 #This is an OpenSuSE build service RPM |
| 52 if [ $EXTENSION == 'rpm' ]; then |
60 if [ $EXTENSION == 'rpm' ]; then |
| 53 echo "Generating zip from $FILE" |
61 echo "Generating zip from $FILE" |