aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/odt2txt.rb22
1 files changed, 22 insertions, 0 deletions
diff --git a/Library/Formula/odt2txt.rb b/Library/Formula/odt2txt.rb
new file mode 100644
index 000000000..07167410d
--- /dev/null
+++ b/Library/Formula/odt2txt.rb
@@ -0,0 +1,22 @@
+require "formula"
+
+class Odt2txt < Formula
+ homepage "https://github.com/dstosberg/odt2txt/"
+ url "https://github.com/dstosberg/odt2txt/archive/v0.5.tar.gz"
+ sha1 "deac1995f02d3b907843dd99a975b201a5f55177"
+
+ def install
+ system "make", "install"
+ end
+
+ resource "sample" do
+ url "https://github.com/Turbo87/odt2txt/raw/samples/samples/sample-1.odt"
+ sha1 "0f29df4fd772c407d7d7b105281cd926f0204b17"
+ end
+
+ test do
+ resource("sample").stage do |r|
+ system "odt2txt", r.cached_download
+ end
+ end
+end