forked from shivammathur/homebrew-extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
executable file
·33 lines (28 loc) · 1.05 KB
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
# typed: false
# frozen_string_literal: true
require File.expand_path("../Abstract/abstract-php-extension", __dir__)
# Class for Imagick Extension
class ImagickAT74 < AbstractPhpExtension
init
desc "Imagick PHP extension"
homepage "https://github.com/Imagick/imagick/releases"
url "https://github.com/Imagick/imagick/archive/448c1cd0d58ba2838b9b6dff71c9b7e70a401b90.tar.gz"
sha256 "b1b32d524d11ffbd530b270f15205c5523ce81efde3c1bee94f4d2730246c867"
version "3.4.4"
head "https://github.com/Imagick/imagick"
license "PHP-3.01"
bottle do
root_url "https://ghcr.io/v2/shivammathur/extensions"
sha256 arm64_big_sur: "c9c39420a3b29dd98017f35e4983b608341f22b3bce6c08a7327402c2813e1f7"
sha256 big_sur: "f52c5fa41992eef65d67334e89f9ec7bc6e20365e8ae1c31ceca46aaa99b38e8"
sha256 catalina: "b228331c51b84a649cf3b45909e50043b9049abad13afa92ffeeacf6e8103a4d"
end
depends_on "imagemagick"
def install
safe_phpize
system "./configure"
system "make"
prefix.install "modules/#{extension}.so"
write_config_file
end
end