class Dcled < Formula desc "Linux driver for dream cheeky USB message board" homepage "https://www.jeffrika.com/~malakai/dcled/index.html" url "https://www.jeffrika.com/~malakai/dcled/dcled-2.2.tgz" sha256 "0da78c04e1aa42d16fa3df985cf54b0fbadf2d8ff338b9bf59bfe103c2a959c6" bottle do cellar :any sha256 "83a87a0f780dc73c21151690f3b1d0654d33e2baad358122be9d24a0610cea64" => :catalina sha256 "4b94dd5ba218e3bdb0a10767d0ae62205495130baa839db4be4ab29d6561e5e2" => :mojave sha256 "91cf7fa30d905efaf7499f0667c65e25ddb69d82be3f52b93d1df6a400fd7141" => :high_sierra sha256 "bfc1532d76b4d37c706d065bc98feb5a3aeff20751a713d7b7efb08c0976fe9e" => :sierra sha256 "53d07c9548eaeba12645e944ce92c27a02667758176815220dc4ee2a8945c661" => :el_capitan sha256 "2ead7c4eb3c170690890c294936a2d3fc39def2fc332ce4c1da6d17cc8f91b50" => :yosemite sha256 "47a0b2e1eba58932936c25726d631d19f0f2a0a7b8872aff9e1d3a83b4e3cfc9" => :mavericks end depends_on "libhid" depends_on "libusb" def install system "make", "CC=#{ENV.cc}", "LIBUSB_CFLAGS=-I#{Formula["libusb"].opt_include}/libusb-1.0" system "make", "install", "FONTDIR=#{share}/#{name}", "INSTALLDIR=#{bin}" end test do system "#{bin}/dcled", "--help" end end