homebrew-core/Formula/sispmctl.rb

29 lines
1.1 KiB
Ruby

class Sispmctl < Formula
desc "Control Gembird SIS-PM programmable power outlet strips"
homepage "https://sispmctl.sourceforge.io/"
url "https://downloads.sourceforge.net/project/sispmctl/sispmctl/sispmctl-4.9/sispmctl-4.9.tar.gz"
sha256 "6a9ec7125e8c01bb45d4a3b56f07fb41fc437020c8dcd8c0f29ebb98dc55a647"
license "GPL-2.0-or-later"
bottle do
sha256 arm64_big_sur: "4e6492d30b2625b3c117b12ddf23d0e12e9cce5c9e0d7f2ae4806a0b9227154d"
sha256 big_sur: "3c5776d579886dae1c1c79dfbd00e0f62009b5b36b369ef5cb17866eeb48e54a"
sha256 catalina: "ca5277017192e749e693430127f13263e8eb78bb37c462dc613ffaac8fd036c8"
sha256 mojave: "751addc56782d7d36eabc1b244413c7e30db2674117ca4bdfa501a23882ff84d"
sha256 x86_64_linux: "77b95926b04f52d79e6f11d5ba03276dac6eb74de675150341161b22709bfd64"
end
depends_on "pkg-config" => :build
depends_on "libusb-compat"
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make", "install"
end
test do
assert_match version.to_s, shell_output("#{bin}/sispmctl -v 2>&1")
end
end