From 5b678e40ceeb6dde8e39c8c50e72284de066663a Mon Sep 17 00:00:00 2001 From: Caleb Xu Date: Thu, 2 May 2019 18:27:20 -0400 Subject: [PATCH] heatshrink 0.4.1 Closes #39486. Signed-off-by: Sean Molenaar --- Formula/heatshrink.rb | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Formula/heatshrink.rb diff --git a/Formula/heatshrink.rb b/Formula/heatshrink.rb new file mode 100644 index 0000000000..c2220c775d --- /dev/null +++ b/Formula/heatshrink.rb @@ -0,0 +1,21 @@ +class Heatshrink < Formula + desc "Data compression library for embedded/real-time systems" + homepage "https://github.com/atomicobject/heatshrink" + url "https://github.com/atomicobject/heatshrink/archive/v0.4.1.tar.gz" + sha256 "7529a1c8ac501191ad470b166773364e66d9926aad632690c72c63a1dea7e9a6" + + def install + mkdir_p prefix/"bin" + mkdir_p prefix/"include" + mkdir_p prefix/"lib" + system "make", "test_heatshrink_dynamic" + system "make", "test_heatshrink_static" + system "make", "install", "PREFIX=#{prefix}" + (pkgshare/"tests").install "test_heatshrink_dynamic", "test_heatshrink_static" + end + + test do + system pkgshare/"tests/test_heatshrink_dynamic" + system pkgshare/"tests/test_heatshrink_static" + end +end