heatshrink 0.4.1

Closes #39486.

Signed-off-by: Sean Molenaar <smillerdev@me.com>
This commit is contained in:
Caleb Xu 2019-05-02 18:27:20 -04:00 committed by Sean Molenaar
parent 7693accb38
commit 5b678e40ce
No known key found for this signature in database
GPG key ID: 6BF5D8DF0D34FAAE

21
Formula/heatshrink.rb Normal file
View file

@ -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