GPSBabel download URL updated

This commit is contained in:
Radek Simko 2014-06-05 17:47:43 +01:00
parent 1145d655d0
commit 9519dd51b6
1 changed files with 16 additions and 1 deletions

View File

@ -1,5 +1,20 @@
def get_token(unix_timestamp)
_hour_in_sec = 60 * 60
_constant = 1480813383
unix_hours = unix_timestamp / _hour_in_sec
token = _constant + unix_hours
token.to_s(16)
end
class Gpsbabel < Cask
url 'http://download2us.softpedia.com/dl/feef8699d84c0a913206f2edfb10d8aa/538b3b9e/400008828/mac/Utilities/GPSBabel-1.5.1.dmg'
url 'http://www.gpsbabel.org/plan9.php',
:data => {
'dl' => 'GPSBabel-1.5.1.dmg',
'token' => get_token(Time.now.utc.to_i)
},
:using => :post
homepage 'http://www.gpsbabel.org'
version '1.5.1'
sha256 '042d50ee75a95ed41b5d2c3957cf7a83da21ab057a7754bf1bde720615f1473f'