27 lines
765 B
Ruby
27 lines
765 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"
|
|
sha256 "4925247524535c0cc128dcc4d87f5538a5ce3b5d3a3c211127fd646ee00252b6"
|
|
license "MIT"
|
|
revision 1
|
|
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
|