homebrew-core/Formula/wallpaper.rb

26 lines
755 B
Ruby

class Wallpaper < Formula
desc "Manage the desktop wallpaper"
homepage "https://github.com/sindresorhus/macos-wallpaper"
url "https://github.com/sindresorhus/macos-wallpaper/archive/v2.1.0.tar.gz"
revision 1
sha256 "4925247524535c0cc128dcc4d87f5538a5ce3b5d3a3c211127fd646ee00252b6"
head "https://github.com/sindresorhus/macos-wallpaper.git"
bottle do
cellar :any_skip_relocation
sha256 "2a2ca640dde6aed8dab04983c680d60532eefcadc11f3c0b379e7754d4d9a662" => :catalina
end
depends_on :xcode => ["11.4", :build]
depends_on :macos => :sierra
def install
system "swift", "build", "--disable-sandbox", "-c", "release"
bin.install ".build/release/wallpaper"
end
test do
system "#{bin}/wallpaper", "get"
end
end