-
Notifications
You must be signed in to change notification settings - Fork 0
/
movim.rb
31 lines (28 loc) · 893 Bytes
/
movim.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
# typed: true
# frozen_string_literal: true
# encode, decode, play and analyse moving images
class Movim < Formula
desc "Encode, decode, play and analyse moving images"
homepage "https://avpres.net/MovIm/"
url "https://avpres.net/releases/movim-2024-08-10.tar.gz"
sha256 "67345a0ceb08e70615298f587ec245aebe72f512f26a3ee802f7db490bf1f4ce"
license "BSD-3-Clause"
def install
if `curl -s https://avpres.net/patch/ | grep -o login` == "login\n"
opoo "Please login for full installation."
else
patch do
url "https://avpres.net/patch/movim-2024-08-10.diff"
sha256 "3ad42607a75de2825432626ed81ea12833ed3325e33fbe6f3480ab3599334071"
end
system "./configure"
system "make"
lib.install Dir["lib/*"]
end
bin.install Dir["bin/*"]
man1.install Dir["man/*"]
end
test do
system "#{bin}/openmovim", "-h"
end
end