/
gpg@2.2.5.json
43 lines (43 loc) · 1.73 KB
/
gpg@2.2.5.json
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
{
"homepage": "https://gnupg.org",
"version": "2.2.5",
"license": "GPLv3",
"url": ["https://gnupg.org/ftp/gcrypt/binary/gnupg-w32-2.2.5_20180222.exe#/dl.7z"],
"hash": ["sha256:9fea4add738a373b3c1a304f74eec2d24a8f5fe7ccdf1d8ee090d99de8f51257"],
"bin": [
"bin/gpg.exe",
["bin/gpg.exe", "gpg2"],
"bin/gpgconf.exe",
"bin/gpgsm.exe",
"bin/gpgv.exe",
"bin/gpg-connect-agent.exe"
],
"pre_install": "
# GnuPGHOME
# * use 'pre_install' (or 'post_install') instead of 'env_set' so that `scoop` doesn't remove the variable if/when uninstalled
# respect USER value, if defined
if ($env:GnuPGHOME) { } else {
# otherwise, 1st existing known default; otherwise, 1st of known defaults
$default_dirs = @( \"$env:USERPROFILE\\.gnupg\", \"$env:USERPROFILE\\.keydb\" )
$val = @( $($default_dirs |% { get-item $_ -ea silent }), $default_dirs[0] ) | select -first 1
# ensure directory exists
new-item $val -type directory -force | out-null
# add to environment
env GnuPGHOME -t $global $val
env GnuPGHOME $val
}
",
"uninstaller": {
"script": [
"",
"# & cmd @('/c','taskkill /F /T /IM gpa.exe 1>NUL 2>NUL')",
"# & cmd @('/c','taskkill /F /T /IM kleopatra.exe 1>NUL 2>NUL')",
"& cmd @('/c','taskkill /F /T /IM dbus-daemon.exe 1>NUL 2>NUL')",
"& cmd @('/c','taskkill /F /T /IM dirmngr.exe 1>NUL 2>NUL')",
"& cmd @('/c','taskkill /F /T /IM gpg-agent.exe 1>NUL 2>NUL')",
"& cmd @('/c','taskkill /F /T /IM gpg-connect-agent.exe 1>NUL 2>NUL')",
"& cmd @('/c','taskkill /F /T /IM scdaemon.exe 1>NUL 2>NUL')"
]
},
"checkver": { "url": "https://www.gpg4win.org/download.html", "re": "GnuPG ([0-9\\.-]+)" }
}