-
-
Notifications
You must be signed in to change notification settings - Fork 47
/
gnupg@8.0.rb
executable file
·42 lines (37 loc) · 1.73 KB
/
gnupg@8.0.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
# typed: true
# frozen_string_literal: true
require File.expand_path("../Abstract/abstract-php-extension", __dir__)
# Class for Gnupg Extension
class GnupgAT80 < AbstractPhpExtension
init
desc "Gnupg PHP extension"
homepage "https://github.com/php-gnupg/php-gnupg"
url "https://pecl.php.net/get/gnupg-1.5.1.tgz"
sha256 "a9906f465ab2343cb2f3127ee209c72760238745c34878d9bbc1576486219252"
head "https://github.com/php-gnupg/php-gnupg.git"
license "BSD-2-Clause"
bottle do
root_url "https://ghcr.io/v2/shivammathur/extensions"
rebuild 1
sha256 cellar: :any, arm64_ventura: "edad34222ddbf846bc06730e77f66d4bfb0623c5006eab954c8f1768b6a146c6"
sha256 cellar: :any, arm64_monterey: "366eac0c6016eaf71eaa7a56c733f0d6e9a20631e64e55277a5a4ecd4e9fdcf2"
sha256 cellar: :any, arm64_big_sur: "d83ee85604c574458d093808018f6037c542c8e34391efce86fb8060599ee159"
sha256 cellar: :any, ventura: "0b7bc11a575a3afedb4c7de06070648d0f57a7a71626dfeac067b38f1192c04c"
sha256 cellar: :any, big_sur: "8558480652263dae072654e0736f5eb82bb0600f08cafab775a9487a7612871c"
sha256 cellar: :any, catalina: "d4047aa913cef4425573c0afd1811c8d419565ece386fa816afeeb4002a0ebbb"
sha256 cellar: :any_skip_relocation, x86_64_linux: "30980c313ecf9e7482cf8b6f28f50a4b56975c71e575d7636d60c2c77db51666"
end
depends_on "gpgme"
def install
args = %W[
--with-gnupg=#{Formula["gpgme"].opt_prefix}
]
Dir.chdir "gnupg-#{version}"
safe_phpize
system "./configure", "--prefix=#{prefix}", phpconfig, *args
system "make"
prefix.install "modules/#{extension}.so"
write_config_file
add_include_files
end
end