diff --git a/README.md b/README.md index b59beb4..1dc01ae 100644 --- a/README.md +++ b/README.md @@ -7,4 +7,5 @@ This Cygwin/MSYS tool creates a build environment for Pidgin on Windows, automat ## License and copyright Copyright (c) 2012-2016 Renato Silva. +Copyright (c) 2021 Jeremiah Blanchard. Licensed under the terms of the [3-clause BSD license](LICENSE). diff --git a/pidgin-windev.sh b/pidgin-windev.sh index dc87c87..6067e89 100644 --- a/pidgin-windev.sh +++ b/pidgin-windev.sh @@ -1,7 +1,7 @@ -#!/bin/bash +#!/usr/bin/env bash -version="2016.6.27" -pidgin_version="2.11.0" +version="2021.03.10" +pidgin_version="2.14.1" devroot="$1" path="$2" @@ -9,6 +9,7 @@ if [[ "$1" = -* || -z "$devroot" || ( -n "$path" && "$path" != --path ) ]]; then Pidgin Windows Development Setup ${version} Target Pidgin version ${pidgin_version} Copyright 2012-2016 Renato Silva + Copyright 2021 Jeremiah Blanchard Licensed under BSD This Cygwin/MSYS script sets up a Windows build environment for Pidgin in @@ -80,7 +81,7 @@ intltool="intltool_0.40.4-1_win32" perl_version="5.20.1.1" perl="strawberry-perl-$perl_version-32bit" perl_dir="strawberry-perl-${perl_version%.*}" -pidgin_base_url="https://developer.pidgin.im/static/win32" +pidgin_base_url="http://developer.pidgin.im/static/win32" gnome_base_url="http://ftp.gnome.org/pub/gnome/binaries" mingw_base_url="http://sourceforge.net/projects/mingw/files/MinGW/Base" mingw_gcc44_url="$mingw_base_url/gcc/Version4/Previous%20Release%20gcc-4.4.0" @@ -95,12 +96,13 @@ available() { download() { filename="${2%/download}" + [ $filename == $2 ] && filename="${2%/}" filename="${filename##*/}" info "Fetching" "$filename" file="$1/$filename" mkdir -p "$1" [[ -f "$file" && ! -s "$file" ]] && rm "$file" - [[ ! -e "$file" ]] && { wget --no-check-certificate --quiet --output-document "$file" "$2" || oops "failed downloading from ${2}"; } + [[ ! -e "$file" ]] && { wget --no-hsts --no-check-certificate --quiet --output-document "$file" "$2" || oops "failed downloading from ${2}"; } } extract() { @@ -176,7 +178,7 @@ echo # Download GCC step "Downloading specific MinGW GCC" -download "${cache}/${mingw}" "${mingw_base_url}/binutils/binutils-2.23.1/binutils-2.23.1-1-mingw32-bin.tar.lzma/download" +download "${cache}/${mingw}" "${mingw_base_url}/binutils/binutils-2.24/binutils-2.24-1-mingw32-bin.tar.xz/download" download "${cache}/${mingw}" "${mingw_base_url}/gcc/Version4/gcc-4.7.2-1/gcc-core-4.7.2-1-mingw32-bin.tar.lzma/download" download "${cache}/${mingw}" "${mingw_base_url}/gcc/Version4/gcc-4.7.2-1/${gcc_source}.tar.lzma/download" download "${cache}/${mingw}" "${mingw_base_url}/gcc/Version4/gcc-4.7.2-1/libgcc-4.7.2-1-mingw32-dll-1.tar.lzma/download"