Skip to content

Commit

Permalink
screenpipe 0.1.98(new formula)
Browse files Browse the repository at this point in the history
Signed-off-by: Anshgrover23 <[email protected]>
  • Loading branch information
Anshgrover23 committed Nov 2, 2024
1 parent 369d945 commit e292c6e
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions Formula/s/screenpipe.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
class Screenpipe < Formula
desc "Library to build personalized AI powered by what you've seen, said, or heard"
homepage "https://github.com/mediar-ai/screenpipe"
url "https://github.com/mediar-ai/screenpipe/archive/refs/tags/v0.1.98.tar.gz"
version "0.1.98"
sha256 "cb3c8039ecb60d35bacd2b9673db112f907b4a1d3d7c32f49a5e77c0274268ad"
license "MIT"

depends_on "rust" => :build
depends_on "ffmpeg"
depends_on :macos

on_macos do
def install
ENV["PKG_CONFIG_PATH"] = "/usr/local/opt/ffmpeg/lib/pkgconfig:#{ENV["PKG_CONFIG_PATH"]}" if Hardware::CPU.intel?
ENV["PKG_CONFIG_ALLOW_CROSS"] = "1" if Hardware::CPU.intel?

target_arch = Hardware::CPU.arm? ? "aarch64-apple-darwin" : "x86_64-apple-darwin"
system "cargo", "build", "--release", "--features", "metal,pipes", "--target", target_arch
bin.install "target/#{target_arch}/release/screenpipe"
end

def caveats
<<~EOS
Bun is not available on Homebrew
To install Bun, please visit the official website:
https://bun.sh
Follow the instructions there to install Bun on your system.
EOS
end
end

test do
system "#{bin}/screenpipe", "-h"
end
end

0 comments on commit e292c6e

Please sign in to comment.