class Laszip < Formula desc "Lossless LiDAR compression" homepage "https://laszip.org/" url "https://github.com/LASzip/LASzip/releases/download/3.4.3/laszip-src-3.4.3.tar.gz" sha256 "53f546a7f06fc969b38d1d71cceb1862b4fc2c4a0965191a0eee81a57c7b373d" head "https://github.com/LASzip/LASzip.git" bottle do sha256 "df73f3c2c8be13bc0fab13f28cbb22262a24c283f4da85cf6b21c55531516e7f" => :catalina sha256 "3a9bc6d5931145800cb5792740a3cae118d27c4879144f3c74a44c2aee75ce64" => :mojave sha256 "a32459a4896bdc365fae55b70744bb7ae2a05b552e3bb0b0097345e0ea423014" => :high_sierra end depends_on "cmake" => :build def install system "cmake", ".", *std_cmake_args system "make", "install" pkgshare.install "example" end test do system ENV.cxx, pkgshare/"example/laszipdllexample.cpp", "-L#{lib}", "-llaszip", "-llaszip_api", "-Wno-format", "-o", "test" assert_match "LASzip DLL", shell_output("./test -h 2>&1", 1) end end