homebrew-core/Formula/imgur-screenshot.rb

28 lines
780 B
Ruby

class ImgurScreenshot < Formula
desc "Take screenshot selection, upload to imgur. + more cool things"
homepage "https://github.com/jomo/imgur-screenshot"
url "https://github.com/jomo/imgur-screenshot/archive/v2.0.0.tar.gz"
sha256 "1581b3d71e9d6c022362c461aa78ea123b60b519996ed068e25a4ccf5a3409f5"
license "MIT"
head "https://github.com/jomo/imgur-screenshot.git"
bottle :unneeded
depends_on "bash"
depends_on "jq"
depends_on "terminal-notifier"
uses_from_macos "curl"
def install
bin.install "imgur-screenshot"
bin.install_symlink "imgur-screenshot" => "imgur-screenshot.sh"
end
test do
# Check deps
system bin/"imgur-screenshot", test_fixtures("test.jpg")
system bin/"imgur-screenshot.sh", test_fixtures("test.png")
end
end