-
Notifications
You must be signed in to change notification settings - Fork 0
/
ortfodb.rb
60 lines (51 loc) · 1.76 KB
/
ortfodb.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Ortfodb < Formula
desc "A readable, easy and enjoyable way to manage portfolio databases using directories and text files."
homepage "https://ortfo.org"
version "1.6.1"
license "MIT"
depends_on "ffmpeg"
depends_on "gifsicle" => :optional
depends_on "imagemagick"
depends_on "poppler" => :optional
depends_on "webp"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/ortfo/db/releases/download/v1.6.1/ortfodb_Darwin_x86_64.tar.gz"
sha256 "a19cb1c2d37a74979e4d4b127f3d3bf917652b6384f9c01893fa81b8aacc9759"
def install
bin.install "ortfodb_darwin_amd64"
end
end
if Hardware::CPU.arm?
url "https://github.com/ortfo/db/releases/download/v1.6.1/ortfodb_Darwin_arm64.tar.gz"
sha256 "d2f0c76d92b336e676fd121ab1d7cc86eae20068b7ea5b0e58183d95833903df"
def install
bin.install "ortfodb_darwin_arm64"
end
end
end
on_linux do
if Hardware::CPU.intel?
url "https://github.com/ortfo/db/releases/download/v1.6.1/ortfodb_Linux_x86_64.tar.gz"
sha256 "30481bdb7fa1dd6c81e576ee91cd0be5e3efc220d8ac881287940d9323b77151"
def install
bin.install "ortfodb_linux_amd64"
end
end
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/ortfo/db/releases/download/v1.6.1/ortfodb_Linux_arm64.tar.gz"
sha256 "224064740c461d9bf7458cf6de2e2a3949cb4c6923489a62010d2da63b31d987"
def install
bin.install "ortfodb_linux_arm64"
end
end
end
def caveats
<<~EOS
Requires ffmpeg, ffprobe, gifsicle (for GIFs generation), pdftoppm (for PDF thumbnailing) and imagemagick to be on your PATH.
EOS
end
end