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 authored and daeho-ro committed Nov 2, 2024
1 parent 369d945 commit b9a0190
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions Formula/s/screenpipe.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
class Screenpipe < Formula

Check failure on line 1 in Formula/s/screenpipe.rb

View workflow job for this annotation

GitHub Actions / Linux

`brew install --verbose --formula --build-bottle screenpipe` failed on Linux!

::error::Empty installation
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"
sha256 "cb3c8039ecb60d35bacd2b9673db112f907b4a1d3d7c32f49a5e77c0274268ad"
license "MIT"

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

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 b9a0190

Please sign in to comment.