homebrew-core/Formula/mas.rb

28 lines
860 B
Ruby
Raw Normal View History

class Mas < Formula
desc "Mac App Store command-line interface"
homepage "https://github.com/argon/mas"
url "https://github.com/argon/mas/archive/v1.3.1.tar.gz"
sha256 "9326058c9e572dd38df644313307805757d7ea6dfea8626e0f41c373ecbd46b5"
head "https://github.com/argon/mas.git"
2016-04-21 15:28:08 +00:00
bottle do
cellar :any_skip_relocation
2016-09-26 01:02:27 +00:00
sha256 "dabea41de5ca826bba584a0d00f8d7b65024f504e5f5fa9dd7639c2f9e410421" => :sierra
sha256 "894480201eb8bd8772378c844860fac3d9ff2fdb75fe5f0001581b14c8cbceed" => :el_capitan
2016-04-21 15:28:08 +00:00
end
depends_on :xcode => ["8.0", :build]
def install
xcodebuild "-project", "mas-cli.xcodeproj",
"-scheme", "mas-cli",
"-configuration", "Release",
"SYMROOT=build"
bin.install "build/mas"
end
test do
assert_equal version.to_s, shell_output("#{bin}/mas version").chomp
end
end