From 5b4dcafb356b3956806a244b0b1a2841c402a0a3 Mon Sep 17 00:00:00 2001 From: PratibhaK11 Date: Mon, 16 Dec 2024 17:07:45 +0530 Subject: [PATCH] Add Homebrew formula for Markitdown --- markitdown.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 markitdown.rb diff --git a/markitdown.rb b/markitdown.rb new file mode 100644 index 0000000..8481ac0 --- /dev/null +++ b/markitdown.rb @@ -0,0 +1,16 @@ +class Markitdown < Formula + desc "Markitdown: A tool for converting markdown documents" + homepage "https://github.com/PratibhaK11/markitdown" + url "https://github.com/PratibhaK11/markitdown/releases/download/v1.0.0-alpha/markitdown-1.0.0.tar.gz" + sha256 "9f81ed1a9011545b4d4ad1318c61b0ab3c46230114036f0aed151c2b0e283c57" # checksum + + depends_on "python@3.9" # required Python version + + def install + bin.install "dist/__main__" => "markitdown" # Installing the binary + end + + test do + system "#{bin}/markitdown", "--help" + end +end