homebrew-core/Formula/heatshrink.rb

22 lines
742 B
Ruby
Raw Normal View History

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