33 lines
1.5 KiB
Ruby
33 lines
1.5 KiB
Ruby
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
|
|
sha256 cellar: :any, arm64_big_sur: "bd8fb1848c3296e5eaadf1436f891a2a6ab8142135947a2806db1d2e5212695d"
|
|
sha256 cellar: :any, big_sur: "5c36acee3c790871237cb7a3400c6fe4e37daa90258c10b89043ac2aad3a6dc4"
|
|
sha256 cellar: :any, catalina: "83a87a0f780dc73c21151690f3b1d0654d33e2baad358122be9d24a0610cea64"
|
|
sha256 cellar: :any, mojave: "4b94dd5ba218e3bdb0a10767d0ae62205495130baa839db4be4ab29d6561e5e2"
|
|
sha256 cellar: :any, high_sierra: "91cf7fa30d905efaf7499f0667c65e25ddb69d82be3f52b93d1df6a400fd7141"
|
|
sha256 cellar: :any, sierra: "bfc1532d76b4d37c706d065bc98feb5a3aeff20751a713d7b7efb08c0976fe9e"
|
|
sha256 cellar: :any, el_capitan: "53d07c9548eaeba12645e944ce92c27a02667758176815220dc4ee2a8945c661"
|
|
sha256 cellar: :any, yosemite: "2ead7c4eb3c170690890c294936a2d3fc39def2fc332ce4c1da6d17cc8f91b50"
|
|
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
|