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 ImagickAT71 < 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: "1a3b0262f794e8b23495a5a12c1baa58998949219901d5de0a9d861fe0778010"
sha256 big_sur: "b4fcabd0dd2015b2ba3d8be2528a060f68ffebf587f5cb4594919d6d70a80115"
sha256 catalina: "3be7d98aa9926d2f94aa3b2b8981d53d0ebd10deab84f093095d6a72f5170fe6"
end
depends_on "imagemagick"
def install
safe_phpize
system "./configure"
system "make"
prefix.install "modules/#{extension}.so"
write_config_file
end
end