heatshrink 0.4.1
Closes #39486. Signed-off-by: Sean Molenaar <smillerdev@me.com>
This commit is contained in:
parent
7693accb38
commit
5b678e40ce
1 changed files with 21 additions and 0 deletions
21
Formula/heatshrink.rb
Normal file
21
Formula/heatshrink.rb
Normal 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
|
Loading…
Reference in a new issue