-
Notifications
You must be signed in to change notification settings - Fork 0
/
rusync.rb
32 lines (27 loc) · 902 Bytes
/
rusync.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
class Rusync < Formula
desc "Minimalist rsync implementation in Rust"
homepage "https://github.com/your-tools/rusync"
version "0.7.2"
license "BSD-3-Clause"
livecheck do
url :homepage
regex(/v?(\d+(?:\.\d+)+[a-z]?)/i)
strategy :github_latest
end
if OS.linux? && Hardware::CPU.intel? && Hardware::CPU.is_64_bit?
url "https://github.com/your-tools/rusync/releases/download/v0.7.2/rusync-linux"
sha256 "d247e303ad932a1d34785a004e30fa692403531e02cca52ec8f76a5621718ab4"
end
if OS.mac?
url "https://github.com/your-tools/rusync/releases/download/v0.7.2/rusync-osx"
sha256 "7ee8ef70c26cb8bff6d967d5a01dc211c2125232deb4aa0b71d543b0479fd8e8"
end
def install
if OS.linux? && Hardware::CPU.intel? && Hardware::CPU.is_64_bit?
bin.install "rusync-linux" => "rusync"
end
if OS.mac?
bin.install "rusync-osx" => "rusync"
end
end
end