| 1 |
|
| 2 |
require 'formula' |
| 3 |
class Pup < Formula |
| 4 |
homepage 'https://github.com/ericchiang/pup' |
| 5 |
version '0.4.0' |
| 6 |
|
| 7 |
if Hardware::CPU.is_64_bit? |
| 8 |
url 'https://github.com/ericchiang/pup/releases/download/v0.4.0/pup_v0.4.0_darwin_amd64.zip' |
| 9 |
sha256 'c539a697efee2f8e56614a54cb3b215338e00de1f6a7c2fa93144ab6e1db8ebe' |
| 10 |
else |
| 11 |
url 'https://github.com/ericchiang/pup/releases/download/v0.4.0/pup_v0.4.0_darwin_386.zip' |
| 12 |
sha256 '75c27caa0008a9cc639beb7506077ad9f32facbffcc4e815e999eaf9588a527e' |
| 13 |
end |
| 14 |
|
| 15 |
def install |
| 16 |
bin.install 'pup' |
| 17 |
end |
| 18 |
end |