auto-editor icon indicating copy to clipboard operation
auto-editor copied to clipboard

feat: support install auto-editor by homebrew

Open sysulq opened this issue 1 year ago • 1 comments

sysulq avatar Aug 19 '22 09:08 sysulq

Here's a source only formula I quickly came up with. Maybe someone more familiar with brew could improve it.

class AutoEditor < Formula
  include Language::Python::Virtualenv

  desc "Effort free video editing!"
  homepage "https://auto-editor.com"
  url "https://files.pythonhosted.org/packages/a3/35/279d29248b07d724bf588fd02298164d88e760491794ab36e2a9ef61a0a0/auto-editor-22.32.1.tar.gz"
  sha256 "f8634438a2c9a88103b7edf7f35834224affa242f5fbfde2dbb7c2e1f7144b5c"
  license "Unlicense"

  head do
    url "https://github.com/WyattBlue/auto-editor.git", branch: "master"
  end

  depends_on "[email protected]"
  depends_on "ffmpeg"
  depends_on "yt-dlp" => :recommended
  # numpy, pillow, av must be installed in brew python

  def install
    system "make", "pypi-files" if build.head?
    virtualenv_install_with_resources
  end

  test do
    system "#{bin}/auto-editor", "--debug"
  end
end

WyattBlue avatar Aug 28 '22 06:08 WyattBlue