mirror of
https://github.com/darwincereska/homebrew-software.git
synced 2026-02-12 04:04:41 -05:00
init: Added stuff
This commit is contained in:
0
Formula/ttymer.rb
Normal file
0
Formula/ttymer.rb
Normal file
24
Formula/xswitcher.rb
Normal file
24
Formula/xswitcher.rb
Normal file
@@ -0,0 +1,24 @@
|
||||
class XSwitcher < Formula
|
||||
version "0.1.2"
|
||||
desc ""
|
||||
homepage "https://github.com/darwincereska/xswitcher"
|
||||
url "https://github.com/darwincereska/xswitcher/archive/refs/tags/v#{version}.tar.gz"
|
||||
sha256 ""
|
||||
license "MIT"
|
||||
|
||||
def install
|
||||
args = []
|
||||
if Hardware::CPU.arm?
|
||||
args << "ARCH=arm64"
|
||||
elsif Hardware::CPU.intel?
|
||||
args << "ARCH=x86_64"
|
||||
end
|
||||
|
||||
system "make", "build", *args
|
||||
bin.install "xswitcher"
|
||||
end
|
||||
|
||||
test do
|
||||
system "#{bin}/xswitcher", "-v"
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user