Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

Adding Chirp Daily Builds #689

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions Casks/chirp-daily-build.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
cask :v1 => 'chirp-daily-build' do
module Utils
def self.latest_chirp_version
# Let's get some info from the SHA1SUM file
require 'net/http'
html = Net::HTTP.get 'trac.chirp.danplanet.com', '/chirp_daily/LATEST/SHA1SUM'
matches = /([a-z0-9]{40})\s+chirp-daily-([0-9]{8})\.app\.zip/.match html

matches[2]
end
end

version Utils.latest_chirp_version
sha256 :no_check

url "http://trac.chirp.danplanet.com/chirp_daily/LATEST/chirp-daily-#{version}.app.zip"
homepage 'http://chirp.danplanet.com/'
license :gpl

app "chirp-daily-#{version}.app", :target => 'chirp-daily-build.app'

caveats <<-EOS.undent
#{token} also requires the KK7DS Python Runtime as described at

http://chirp.danplanet.com/projects/chirp/wiki/Download#CHIRP-Downloads
EOS
end