homebrew-core/Formula/wallpaper.rb

28 lines
1.1 KiB
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.3.1.tar.gz"
sha256 "d6aebaca1083ee3e5d6494f5574931691bad239a98e8fe99655790a40f2cb80a"
license "MIT"
head "https://github.com/sindresorhus/macos-wallpaper.git", branch: "main"
bottle do
sha256 cellar: :any_skip_relocation, arm64_monterey: "f020cda2a5cafba2c001ae6d32cae25d0f63283c221fd3ce75dde1414e97a19a"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "c730b0f63bdf5395221ab3c45018e23e31b782a31e379691947f1b0199381ba4"
sha256 cellar: :any_skip_relocation, monterey: "a4ca40d5df4a1983cc719122135a56d19f6861a216c347c984a2b7f89c4e4d4e"
sha256 cellar: :any_skip_relocation, big_sur: "2f8fcb711d2e7a94dcef1894d6f23c754e950b1773f7a3da008cb5dd59696dfa"
end
depends_on xcode: ["13.0", :build]
depends_on :macos
def install
system "swift", "build", "--disable-sandbox", "-c", "release"
bin.install ".build/release/wallpaper"
end
test do
system "#{bin}/wallpaper", "get"
end
end