36 lines
2.0 KiB
Ruby
36 lines
2.0 KiB
Ruby
class Somagic < Formula
|
|
desc "Linux capture program for the Somagic variants of EasyCAP"
|
|
homepage "https://code.google.com/archive/p/easycap-somagic-linux/"
|
|
url "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/easycap-somagic-linux/somagic-easycap_1.1.tar.gz"
|
|
sha256 "3a9dd78a47335a6d041cd5465d28124612dad97939c56d7c10e000484d78a320"
|
|
|
|
bottle do
|
|
sha256 cellar: :any, arm64_monterey: "cc20451f949f3dd25732f6090526d638d9d368a3dacfcd923440501788a39c3f"
|
|
sha256 cellar: :any, arm64_big_sur: "5a8bb98812f68221bf3db7667aa281e9c18b111837bf1b5167adf30e498b53ff"
|
|
sha256 cellar: :any, monterey: "375696b4885e66a0c87c4cbefa8702bfa2c47ac9d75e7f7027f06839b0fd2b1b"
|
|
sha256 cellar: :any, big_sur: "5451a0d35aa0aedcb43d1aeb6e080804333f8f7abaa090ceab62b1d02482389f"
|
|
sha256 cellar: :any, catalina: "41d2479b3d2a267bbcd8c5db4ea7a8fe04c120d260d2ac9f087bd386012a3971"
|
|
sha256 cellar: :any, mojave: "c2a69924be6f0d397b244955cfa841567ecd3171dc2674a4ac9748f49f58a44b"
|
|
sha256 cellar: :any, high_sierra: "b6c11695d2c25a49a4a2c5795764a83615a214630bc25914e65fc691662617fc"
|
|
sha256 cellar: :any, sierra: "377ecbdc01ebaab2acf1101aa00bbf5554e7d56b1b630baa28ef70d9deb10811"
|
|
sha256 cellar: :any, el_capitan: "ed8a82423daaabaca0a7ab203edc68b3c0a1a1d617eb24d46486dfa974e9eb4f"
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "d574fbe24e39eaf6e35a4d8317c689ae890983a801e8abf8e5dc0a2941a1104b"
|
|
end
|
|
|
|
depends_on "libgcrypt"
|
|
depends_on "libusb"
|
|
depends_on "somagic-tools"
|
|
|
|
def install
|
|
system "make"
|
|
system "make", "PREFIX=#{prefix}", "install"
|
|
end
|
|
|
|
def caveats
|
|
<<~EOS
|
|
Before running somagic-capture you must extract the official firmware from the CD.
|
|
See https://code.google.com/archive/p/easycap-somagic-linux/wikis/GettingStarted.wiki for details.
|
|
EOS
|
|
end
|
|
end
|