29 lines
1.5 KiB
Ruby
29 lines
1.5 KiB
Ruby
class Setweblocthumb < Formula
|
|
desc "Assigns custom icons to webloc files"
|
|
homepage "https://hasseg.org/setWeblocThumb/"
|
|
url "https://github.com/ali-rantakari/setWeblocThumb/archive/v1.0.0.tar.gz"
|
|
sha256 "0258fdabbd24eed2ad3ff425b7832c4cd9bc706254861a6339f886efc28e35be"
|
|
license "Apache-2.0"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, arm64_big_sur: "849e242cc0d75408abb95ed3afead495868ae730132fd4a648f032ea3b873774"
|
|
sha256 cellar: :any_skip_relocation, big_sur: "565f0fb62158115fcd9e1618282b989bd50007f5c8c0260df5f47f85660adb87"
|
|
sha256 cellar: :any_skip_relocation, catalina: "6849eb0b22ee09260daa9432881f66dbb97ef44b26e1d469ca11d316658ee4f2"
|
|
sha256 cellar: :any_skip_relocation, mojave: "95ec7fa6fc12d232f0ce75089ec987d91a922752578447a68e9170de743d5552"
|
|
sha256 cellar: :any_skip_relocation, high_sierra: "8d7536c3ba30dc46c4e3a0f2e4be411d3e8b06be939a5130c67d2094da0cef4e"
|
|
sha256 cellar: :any_skip_relocation, sierra: "563620905a209f198f30bbffc9177294b224cee3098719af6da8cfca74092157"
|
|
sha256 cellar: :any_skip_relocation, el_capitan: "2a9c327d5d594d00d7d283d6627a5eeef160731616aec9d62bab017b52d71f1a"
|
|
sha256 cellar: :any_skip_relocation, yosemite: "f55cbbabd19c245e42249b8d75c51b4fcec05d6d08674a448bf6e7a3da70aae5"
|
|
end
|
|
|
|
def install
|
|
system "make"
|
|
bin.install "setWeblocThumb"
|
|
end
|
|
|
|
test do
|
|
Pathname.new("google.webloc").write('{URL = "https://google.com";}')
|
|
system "#{bin}/setWeblocThumb", "google.webloc"
|
|
end
|
|
end
|